From 15d5fde50860974ba95c05c3d56c7a5a2160e1cc Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 22 Feb 2024 17:26:50 -0800 Subject: [PATCH] fix: test with v3 also --- .github/workflows/main.yml | 21 +++++---------------- 1 file changed, 5 insertions(+), 16 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f33f66b0d..8c630830e 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -14,30 +14,19 @@ jobs: - name: Run tests and collect coverage run: npm run test - name: Upload coverage to Codecov (script) - uses: ./ + uses: codecov/codecov-action@v3 with: files: ./coverage/script/coverage-final.json flags: script,${{ matrix.os }} name: codecov-script verbose: true token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload coverage to Codecov (demo) - uses: ./ - with: - files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json - file: ./coverage/coverage-final.json - flags: demo,${{ matrix.os }} - name: codecov-demo - verbose: true - token: ${{ secrets.CODECOV_TOKEN }} - - name: Upload coverage to Codecov (version) + - name: Upload coverage to Codecov (script) uses: ./ with: - files: ./coverage/calculator/coverage-final.json,./coverage/coverage-test/coverage-final.json - file: ./coverage/coverage-final.json - flags: version,${{ matrix.os }} - name: codecov-version - version: v0.2.0 + files: ./coverage/script/coverage-final.json + flags: script,${{ matrix.os }} + name: codecov-script verbose: true token: ${{ secrets.CODECOV_TOKEN }}