Skip to content

Commit 100f16a

Browse files
authored
Update CI to test dart2js & dart2wasm across Chrome and Node (#2369)
1 parent f647c0a commit 100f16a

1 file changed

Lines changed: 9 additions & 4 deletions

File tree

.github/workflows/pool.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,15 +61,20 @@ jobs:
6161
- uses: dart-lang/setup-dart@65eb853c7ba17dde3be364c3d2858773e7144260
6262
with:
6363
sdk: ${{ matrix.sdk }}
64+
# Node 22 has wasmGC enabled, which allows the wasm tests to run!
65+
- name: Setup Node.js 22
66+
uses: actions/setup-node@v6
67+
with:
68+
node-version: 22
6469
- id: install
6570
name: Install dependencies
6671
run: dart pub get
6772
- name: Run VM tests
6873
run: dart test --platform vm
6974
if: always() && steps.install.outcome == 'success'
7075
- name: Run Chrome tests
71-
run: dart test --platform chrome
76+
run: dart test --platform chrome --compiler dart2js,dart2wasm
77+
if: always() && steps.install.outcome == 'success'
78+
- name: Run node tests
79+
run: dart test --platform node --compiler dart2js,dart2wasm
7280
if: always() && steps.install.outcome == 'success'
73-
- name: Run Chrome tests - wasm
74-
run: dart test --platform chrome -c dart2wasm
75-
if: always() && steps.install.outcome == 'success' && matrix.sdk == 'dev'

0 commit comments

Comments
 (0)