-
Notifications
You must be signed in to change notification settings - Fork 84
39 lines (39 loc) · 868 Bytes
/
test.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Test
on:
pull_request:
push:
branches-ignore:
- release
jobs:
build:
name: Node.js CI
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
node-version: [16.x, 18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:lib
- run: npm test
- run: npm run build:pages
support:
name: Node.js unstable
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [19.x, 20.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
cache: 'npm'
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build:lib
- run: npm test