Skip to content

Commit 9c07757

Browse files
committed
chore: do not test on EOL Node.js versions
1 parent 5aa959c commit 9c07757

File tree

1 file changed

+8
-23
lines changed

1 file changed

+8
-23
lines changed

.github/workflows/node.js.yml

Lines changed: 8 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,11 @@ on:
1010
branches: [ main ]
1111

1212
jobs:
13-
build:
14-
15-
runs-on: ubuntu-latest
16-
17-
strategy:
18-
matrix:
19-
node-version: [16.x, 18.x, 20.x]
20-
21-
steps:
22-
- uses: actions/checkout@v3
23-
with:
24-
# Need commit history test for cli-tests
25-
fetch-depth: 0
26-
- name: Use Node.js ${{ matrix.node-version }}
27-
uses: actions/setup-node@v3
28-
with:
29-
node-version: ${{ matrix.node-version }}
30-
- run: npm install
31-
- run: npm run build --if-present
32-
- run: npm run test-ci
33-
env:
34-
CI: true
35-
- run: bash <(curl -s https://codecov.io/bash)
13+
test:
14+
name: Test on Node.js
15+
uses: pkgjs/action/.github/workflows/node-test.yaml@v0
16+
with:
17+
test-command: npm run test-ci
18+
post-test-steps: |
19+
- name: Upload coverage report to Codecov
20+
run: bash <(curl -s https://codecov.io/bash)

0 commit comments

Comments
 (0)