From ce8b7c55dc40e9d8d7fdcba54dce3995ee6a3393 Mon Sep 17 00:00:00 2001 From: Leo Farias Date: Wed, 20 Sep 2023 11:26:51 -0400 Subject: [PATCH] fix --- .github/actions/test/action.yml | 2 +- .github/workflows/test.yml | 6 +----- tool/grind.dart | 1 + 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index 680a1ef4..695a86c7 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -9,5 +9,5 @@ runs: shell: bash - name: Run tests - run: dart test --coverage=coverage + run: grind test collect-coverage shell: bash \ No newline at end of file diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bdb07ccc..3d4d748d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -34,11 +34,7 @@ jobs: - name: Run tests uses: ./.github/actions/test - - - - name: Generate coverage reports - run: grind collect-coverage - shell: bash + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v3 diff --git a/tool/grind.dart b/tool/grind.dart index f5efbcb0..ceb209fa 100644 --- a/tool/grind.dart +++ b/tool/grind.dart @@ -101,6 +101,7 @@ Future test() async { } @Task('Gather coverage and generate report') +@Depends(test) Future collectCoverage() async { await runAsync( 'dart',