Skip to content

Commit d304167

Browse files
committed
👷 break up test CI
1 parent 07b551f commit d304167

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/test.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ jobs:
4848
name: "Test"
4949
needs: analyze
5050
runs-on: ubuntu-latest
51+
strategy:
52+
matrix:
53+
include:
54+
- platform: chrome
55+
- platform: vm
5156
steps:
5257
- name: Cache Pub hosted dependencies
5358
uses: actions/cache@v4
@@ -66,21 +71,24 @@ jobs:
6671
- id: checkout
6772
name: Checkout repository
6873
uses: actions/checkout@v4
69-
- id: install_dart_dependencies
70-
name: Install Dart dependencies
74+
- id: install
75+
name: Install dependencies
7176
run: dart pub get
7277
- name: Run the project's tests in Chrome
78+
if: ${{ matrix.platform == 'chrome' }}
7379
run: dart test --platform chrome
74-
continue-on-error: true
7580
- name: Install coverage dependencies
81+
if: ${{ matrix.platform == 'vm' }}
7682
run: |
7783
dart pub global activate coverage
7884
dart pub global activate remove_from_coverage
7985
- name: Collect and report coverage
86+
if: ${{ matrix.platform == 'vm' }}
8087
run: |
8188
dart pub global run coverage:test_with_coverage
8289
dart pub global run remove_from_coverage:remove_from_coverage -f coverage/lcov.info -r '\.g\.dart$'
8390
- name: Upload coverage
91+
if: ${{ matrix.platform == 'vm' }}
8492
uses: codecov/codecov-action@v4
8593
with:
8694
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)