From 003e948899752fc0b4543a2f675b83c332640caa Mon Sep 17 00:00:00 2001 From: veeck Date: Tue, 5 Jan 2021 14:02:14 +0100 Subject: [PATCH] Use codecov action instead of bash command --- .github/workflows/codecov-test-suites.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/codecov-test-suites.yml b/.github/workflows/codecov-test-suites.yml index f44e95c6..f5f400a5 100644 --- a/.github/workflows/codecov-test-suites.yml +++ b/.github/workflows/codecov-test-suites.yml @@ -5,13 +5,16 @@ name: "Run Codecov Tests" on: [push] jobs: - test: + run-and-upload-coverage-report: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - run: | Xvfb :99 -screen 0 1024x768x16 & export DISPLAY=:99 - npm install + npm ci npm run test:coverage - bash <(curl -s https://codecov.io/bash) + - uses: codecov/codecov-action@v1 + with: + file: ./coverage/lcov.info + fail_ci_if_error: true