Skip to content

Commit

Permalink
ci: update ci steps to use node20
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Addai committed Jun 23, 2024
1 parent 772ce26 commit 0ed5eb3
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
runs-on: ubuntu-latest
steps:
-
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history
-
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- run: npm i -g npm@8.5.5
- run: npm i -g npm@10.5.0
- run: npm ci
- run: npm run standards
test:
Expand All @@ -23,16 +23,15 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [ 12, 14, 16, 'lts/*', 'latest' ]
node-version: [16, 20, 'lts/*', 'latest' ]
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
-
name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: npm i -g [email protected]
- run: npm ci # Reinstall the dependencies to ensure they install with the current version of node
- run: npm test
- name: Coveralls
uses: coverallsapp/github-action@v1
uses: coverallsapp/github-action@v2

0 comments on commit 0ed5eb3

Please sign in to comment.