Skip to content

Commit

Permalink
chore: update nodejs to 20.x
Browse files Browse the repository at this point in the history
  • Loading branch information
marcomontalbano committed Apr 26, 2024
1 parent 010e157 commit 15aea77
Show file tree
Hide file tree
Showing 5 changed files with 3,497 additions and 2,022 deletions.
37 changes: 20 additions & 17 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,28 +8,31 @@ jobs:

strategy:
matrix:
node: [12.x, 14.x]
node: [18.x, 20.x, 22.x]

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}

- name: Project setup `npm ci`
run: npm ci

- name: Run `test`
run: npm test


coverage:
needs: [test]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 10.x
node-version: 20.x
- name: Project setup `npm ci`
run: npm ci

Expand All @@ -45,7 +48,7 @@ jobs:
npm install coveralls
cat coverage/lcov.info | ./node_modules/.bin/coveralls
- name: Upload `coverage` artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage/lcov-report
Expand All @@ -54,19 +57,19 @@ jobs:
stryker:
needs: [test]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 10.x
node-version: 20.x
- name: Project setup `npm ci`
run: npm ci

- name: Run `stryker`
run: npm run stryker
- name: Upload `stryker` artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v4
with:
name: stryker
path: reports/mutation/html
Expand All @@ -75,14 +78,14 @@ jobs:
publish:
needs: [test, coverage]
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v4
if: github.ref == 'refs/heads/master'
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
if: github.ref == 'refs/heads/master'
with:
node-version: 10.x
node-version: 20.x
- name: Project setup `npm ci && npm run build`
if: github.ref == 'refs/heads/master'
run: |
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
20
8 changes: 0 additions & 8 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 15aea77

Please sign in to comment.