From 888a59d12dec566d3799f887a87e6f93658d3f8f Mon Sep 17 00:00:00 2001 From: Vincent Date: Mon, 28 Oct 2024 17:08:14 +0100 Subject: [PATCH] Always output the coverage report MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I intended to do this in 647e95ede6f61628d73c136b6eb4afb506e2c0f4, but the `failure()` call that I remove didn't limit it to failures — it explicitly enabled it for failing jobs, where the default is to skip subsequent jobs after a failure. However, if we want a job to run after both failed and successful runs, we need the `always()` call. --- .github/workflows/unittests.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/unittests.yaml b/.github/workflows/unittests.yaml index 16b84411e2..5d5f584725 100644 --- a/.github/workflows/unittests.yaml +++ b/.github/workflows/unittests.yaml @@ -29,6 +29,7 @@ jobs: - run: npm test -- --coverageThreshold='{"global":{"branches":80,"functions":80,"lines":80,"statements":80}}' if: github.event_name == 'schedule' - uses: actions/upload-artifact@v4 + if: always() with: name: coverage-report path: coverage/