From fc9f0814a51f8ae254e742199c70e32b9bc0a376 Mon Sep 17 00:00:00 2001 From: Pierre Cavin Date: Fri, 26 May 2023 01:25:52 +0200 Subject: [PATCH] ci: add coverage upload to test workflow --- .github/workflows/test.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0918070..88cd9d0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -30,3 +30,10 @@ jobs: git config --global user.name "Test User" - name: Run tests run: npm run test + - name: Upload coverage reports to Codecov + if: ${{ matrix.node-version == 20 }} + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: coverage/coverage-final.json + fail_ci_if_error: true