Skip to content

Commit

Permalink
Added matrix strategy to test packages in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoboss committed Mar 20, 2024
1 parent 3d5792c commit eff0f0e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ on:

jobs:
test:
name: Analyze, format, and test
strategy:
matrix:
package: ['abstractions']

name: Analyze, format, and test (${{ matrix.package }})
runs-on: ubuntu-latest

steps:
Expand All @@ -24,17 +28,22 @@ jobs:

- name: Install dependencies
run: dart pub get
working-directory: packages/${{ matrix.package }}

- name: Verify formatting
continue-on-error: true
run: dart format --output=none --set-exit-if-changed .
working-directory: packages/${{ matrix.package }}

- name: Analyze project source
continue-on-error: true
run: dart analyze --fatal-infos
working-directory: packages/${{ matrix.package }}

- name: Run build_runner
run: dart run build_runner build --delete-conflicting-outputs
working-directory: packages/${{ matrix.package }}

- name: Run tests
run: dart test
working-directory: packages/${{ matrix.package }}

0 comments on commit eff0f0e

Please sign in to comment.