Skip to content

Commit bfc7dff

Browse files
committed
ci: add build step
1 parent ef2655a commit bfc7dff

File tree

1 file changed

+20
-11
lines changed

1 file changed

+20
-11
lines changed

.github/workflows/nodejs.yml

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,27 @@
11
name: CI
22
on: [push, pull_request]
33
jobs:
4-
build:
4+
test:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [14.x, 16.x, 18.x]
8+
node-version: [16.x, 18.x]
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Use Node.js ${{ matrix.node-version }}
12+
uses: actions/setup-node@v3
13+
with:
14+
node-version: ${{ matrix.node-version }}
15+
- run: npm install
16+
- run: npm test
17+
18+
build:
19+
runs-on: ubuntu-latest
920
steps:
10-
- uses: actions/checkout@v2
11-
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v3
13-
with:
14-
node-version: ${{ matrix.node-version }}
15-
- run: npm install
16-
- run: npm test
17-
env:
18-
CI: true
21+
- uses: actions/checkout@v2
22+
- name: Use Node.js 18.x
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: 18.x
26+
- run: npm install
27+
- run: npm run compile

0 commit comments

Comments
 (0)