-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (48 loc) · 1.15 KB
/
ci.yml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-node@v3.4.1
with:
node-version: 14.x
cache: npm
- run: npm ci
- run: npm run lint:js
build:
name: "Node ${{ matrix.node-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x]
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-node@v3.4.1
with:
node-version: ${{ matrix.node-version }}
cache: npm
- name: install dependencies
run: npm ci
- run: npm test
release-it-compat:
name: "release-it@${{ matrix.release-it-version }}"
runs-on: ubuntu-latest
strategy:
matrix:
release-it-version: ["14.0.0", "14.1.0", "14.2.0", "15.1.3"]
steps:
- uses: actions/checkout@v3.0.2
- uses: actions/setup-node@v3.4.1
with:
node-version: 14
cache: npm
- name: install dependencies
run: npm ci
- run: npm install --saveDev release-it@${{ matrix.release-it-version }}
- run: npm test