Skip to content

Commit 85c6dd5

Browse files
committed
chore: update nodejs workflows
1 parent 25fcb4d commit 85c6dd5

File tree

1 file changed

+8
-29
lines changed

1 file changed

+8
-29
lines changed

.github/workflows/nodejs.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -2,35 +2,14 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: master
5+
branches:
6+
- master
67
pull_request:
78

89
jobs:
9-
lint:
10-
runs-on: ubuntu-latest
11-
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2-beta
14-
with:
15-
node-version: 14.x
16-
- name: Install dependencies
17-
run: npm install
18-
- name: Run ESLint
19-
run: npm run eslint
20-
test:
21-
runs-on: ubuntu-latest
22-
strategy:
23-
matrix:
24-
node-version: [10.x, 12.x, 14.x]
25-
steps:
26-
- uses: actions/checkout@v2
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v2-beta
29-
with:
30-
node-version: ${{ matrix.node-version }}
31-
- name: Install dependencies
32-
run: npm install
33-
- name: Run tests
34-
run: npm run test-coverage
35-
- name: Send coverage report to Codecov
36-
uses: codecov/codecov-action@v1
10+
nodejs:
11+
# Documentation: https://github.com/zakodium/workflows#nodejs-ci
12+
uses: zakodium/workflows/.github/workflows/nodejs.yml@nodejs-v1
13+
with:
14+
node-version-matrix: '[14, 16, 18]'
15+
lint-check-types: true

0 commit comments

Comments
 (0)