Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 22 additions & 17 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,18 @@ jobs:
os: macos-14

integration:
- upgrade
- vite
- cli
- postcss
- oxide
- webpack
- name: upgrade
shards: 3
- name: vite
shards: 5
- name: cli
shards: 4
- name: postcss
shards: 5
- name: oxide
shards: 1
- name: webpack
shards: 1

# Exclude windows and macos from being built on feature branches
run-all:
Expand All @@ -47,7 +53,7 @@ jobs:
runs-on: ${{ matrix.runner.os }}
timeout-minutes: 30

name: ${{ matrix.runner.name }} / ${{ matrix.integration }}
name: ${{ matrix.runner.name }} / ${{ matrix.integration.name }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -103,18 +109,17 @@ jobs:
CARGO_PROFILE_RELEASE_LTO: 'off'
CARGO_TARGET_X86_64_PC_WINDOWS_MSVC_LINKER: 'lld-link'

- name: Test ${{ matrix.integration }} 1/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 1/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
- name: Test ${{ matrix.integration.name }}
run: |

- name: Test ${{ matrix.integration }} 2/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 2/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}
# Run shards in parallel
for i in $(seq 1 ${{ matrix.integration.shards }}); do
(pnpm run test:integrations ./integrations/${{ matrix.integration.name }} --shard $i/${{ matrix.integration.shards }}) &
done

# Wait for all background jobs
wait

- name: Test ${{ matrix.integration }} 3/3
run: pnpm run test:integrations ./integrations/${{ matrix.integration }} --shard 3/3
env:
GITHUB_WORKSPACE: ${{ github.workspace }}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"tsup": "^8.5.0",
"turbo": "^2.5.4",
"typescript": "^5.5.4",
"vitest": "^2.0.5"
"vitest": "^4.0.3"
},
"packageManager": "pnpm@9.6.0",
"pnpm": {
Expand Down
Loading
Loading