Skip to content

Commit

Permalink
Run tests on matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
git-elliot committed Nov 17, 2024
1 parent c3d33f7 commit 960c855
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/flutter_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,12 @@ jobs:
flutter-test:
name: 'Flutter Analyze + Test'
strategy:
matrix:
os: [macos, ubuntu, windows]
needs: changes
if: ${{ needs.changes.outputs.lib == 'true' || needs.changes.outputs.test == 'true' || needs.changes.outputs.yaml == 'true' || needs.changes.outputs.android == 'true' || needs.changes.outputs.linux == 'true' || needs.changes.outputs.macos == 'true' || needs.changes.outputs.windows == 'true' }}
runs-on: macos-latest
runs-on: ${{ matrix.os }}-latest
steps:
- name: Checkout
uses: actions/[email protected]
Expand Down Expand Up @@ -99,7 +102,7 @@ jobs:
run: flutter test
- name: Run integration tests
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
run: flutter test integration_test --coverage -d macos
run: flutter test integration_test --coverage -d ${{ matrix.os == 'ubuntu' && 'linux' || matrix.os }}
- name: Upload Coverage to CodeCov
if: ${{ steps.extract_branch.outputs.branch == 'dev' }}
uses: codecov/codecov-action@v3
Expand Down

0 comments on commit 960c855

Please sign in to comment.