Skip to content

Commit

Permalink
ci: refactor and upgrade actions (#144)
Browse files Browse the repository at this point in the history
* refactor: ci.yml to use an env var for node version

* ci: upgrade codecov/codecov-action from v3 to v4
  • Loading branch information
artus9033 authored Aug 15, 2024
1 parent 92a363e commit 8a62d9f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -57,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
Expand Down

0 comments on commit 8a62d9f

Please sign in to comment.