File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 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 }}
You can’t perform that action at this time.
0 commit comments