diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 4488a21..52c0f8d 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -34,6 +34,26 @@ jobs: run: dart format --set-exit-if-changed . - name: Static analyze project run: dart analyze --fatal-infos --fatal-warnings . + - name: Run tests + run: dart test + + coverage: + name: Coverage + needs: + - test + runs-on: ubuntu-latest + timeout-minutes: 10 + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + fetch-depth: 1 + - name: Download dart sdk + uses: dart-lang/setup-dart@v1 + with: + sdk: stable + - name: Install dependencies + run: dart pub get - name: Run tests run: dart test --coverage=coverage - name: Convert coverage to ICOV @@ -44,4 +64,4 @@ jobs: file: coverage/lcov.info fail_ci_if_error: true flags: unittests - verbose: true + verbose: true \ No newline at end of file