Skip to content

Commit 7998e09

Browse files
authored
ci: Run web unit tests with wasm as well as js (serverpod#3335)
1 parent eba2814 commit 7998e09

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/dart-tests.yaml

+17-4
Original file line numberDiff line numberDiff line change
@@ -149,19 +149,32 @@ jobs:
149149
name: Unit tests Web
150150
runs-on: ${{ matrix.os }}
151151
strategy:
152+
fail-fast: false
152153
matrix:
153154
flutter-version: ['3.19.0', '3.29.0']
154-
os: [ubuntu-latest]
155-
path: ['packages/serverpod_client']
155+
os: [ubuntu-latest, windows-latest]
156+
include:
157+
- compiler: dart2js
158+
- os: ubuntu-latest
159+
platform: chrome
160+
- os: windows-latest
161+
platform: edge
162+
- flutter-version: '3.29.0'
163+
platform: chrome
164+
compiler: dart2wasm
165+
156166
steps:
157167
- uses: actions/checkout@v3
158168
- uses: subosito/flutter-action@v2
159169
with:
160170
flutter-version: ${{ matrix.flutter-version }}
161171
- uses: browser-actions/setup-chrome@v1
162172
- name: Run unit tests
163-
run: dart test -p chrome
164-
working-directory: ${{ matrix.path }}
173+
run: >-
174+
dart test
175+
--platform=${{ matrix.platform }}
176+
--compiler=${{ matrix.compiler }}
177+
working-directory: packages/serverpod_client
165178

166179
e2e_io_tests:
167180
name: Serverpod E2E IO tests

0 commit comments

Comments
 (0)