From 4436abc6e012a0cb5001154ba860e17c5f3636b4 Mon Sep 17 00:00:00 2001 From: artus9033 Date: Thu, 15 Aug 2024 19:42:35 +0200 Subject: [PATCH 1/2] refactor: ci.yml to use an env var for node version --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 316b4bfd8..fff53a070 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,15 +6,17 @@ jobs: tests-and-coverage: name: Run tests & report coverage runs-on: ubuntu-latest + env: + NODE_VERSION: 20.9.0 steps: - name: Checkout uses: actions/checkout@v4 - - name: Use Node.js 20.9.0 + - name: Use Node.js ${{ env.NODE_VERSION }} uses: actions/setup-node@v4 with: - node-version: 20.9.0 + node-version: ${{ env.NODE_VERSION }} cache: "npm" - name: Cache npm dependencies From 47f8d81ddefd7e52ec7a758253e76e2edec2e22e Mon Sep 17 00:00:00 2001 From: artus9033 Date: Thu, 15 Aug 2024 19:43:38 +0200 Subject: [PATCH 2/2] ci: upgrade codecov/codecov-action from v3 to v4 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fff53a070..0b3d685f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,7 +59,7 @@ jobs: run: npm test - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: fail_ci_if_error: false files: ./coverage/e2e/coverage-final.json,./coverage/unit/coverage-final.json,./coverage/integration/coverage-final.json