From eff0f0e8b721dea9595320f77e150dcd2decd0a9 Mon Sep 17 00:00:00 2001 From: Ricardo Boss Date: Wed, 20 Mar 2024 05:39:32 +0100 Subject: [PATCH] Added matrix strategy to test packages in parallel --- .github/workflows/dart.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dart.yml b/.github/workflows/dart.yml index c91e472..45d2476 100644 --- a/.github/workflows/dart.yml +++ b/.github/workflows/dart.yml @@ -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: @@ -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 }}