From 2fde8e5573595825dc07c955faf926e2cb7a7697 Mon Sep 17 00:00:00 2001 From: Marco Date: Sun, 28 Aug 2022 21:06:19 +0800 Subject: [PATCH] add codecov --- .github/workflows/test.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 44d5032c5..83836058c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -62,7 +62,12 @@ jobs: # - name: Analyze # run: flutter analyze - name: Test - run: flutter test + run: flutter test --coverage + - name: Upload to code coverage + uses: codecov/codecov-action@v1.2.2 + with: + token: ${{secrets.CODECOV_TOKEN}} + file: coverage/lcov.info - name: Delete temp files run: | Remove-Item -Path $env:CHANGE_NOW;