Skip to content

Commit b43ab0f

Browse files
committed
Update CI config
1 parent 642134f commit b43ab0f

File tree

1 file changed

+18
-23
lines changed

1 file changed

+18
-23
lines changed

.github/workflows/nodejs.yml

Lines changed: 18 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
name: Node CI
22

3-
on:
4-
push:
5-
branches:
6-
- $default-branch
7-
pull_request:
8-
branches:
9-
- "*"
10-
3+
on: [push]
4+
env:
5+
FORCE_COLOR: 2
116
jobs:
12-
build:
13-
14-
runs-on: ubuntu-latest
15-
7+
test:
8+
name: v${{ matrix.node }} @ ${{ matrix.os }}
9+
runs-on: ${{ matrix.os }}
1610
strategy:
1711
matrix:
18-
node-version: [12.x, 14.x, 16.x]
19-
12+
node: [14, 16, 18]
13+
os: [ubuntu-latest]
2014
steps:
21-
- uses: actions/checkout@v1
22-
- name: Use Node.js ${{ matrix.node-version }}
23-
uses: actions/setup-node@v1
15+
- uses: actions/checkout@v3
16+
- name: Use Node.js ${{ matrix.node }}
17+
uses: actions/setup-node@v3
2418
with:
25-
node-version: ${{ matrix.node-version }}
26-
- name: npm install, build, and test
19+
node-version: ${{ matrix.node }}
20+
- run: npm install
21+
- name: Build and run tests
22+
run: |
23+
npm run build --if-present
24+
npm test
25+
- name: Run browser tests and lint
2726
run: |
28-
npm install
29-
npm run test
3027
npm run browser-tests
3128
npm run lint
32-
env:
33-
CI: true

0 commit comments

Comments
 (0)