From 83df8231400b6295e5a5b96f9ae567c540e7258b Mon Sep 17 00:00:00 2001 From: Felipe Peter Date: Tue, 20 Feb 2024 09:01:11 +0800 Subject: [PATCH] ci: Upload coverage reports --- .github/workflows/test.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b2ba03e..849938d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -40,7 +40,13 @@ jobs: - run: dart format --set-exit-if-changed . - run: dart run build_runner build --delete-conflicting-outputs # Generate mocks - run: flutter analyze . - - run: flutter test --test-randomize-ordering-seed=random + - run: flutter test --test-randomize-ordering-seed=random --coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: chill-chinese/stroke-order-animator - name: Save Dart cache uses: actions/cache/save@v3