-
Notifications
You must be signed in to change notification settings - Fork 7
70 lines (53 loc) · 1.35 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
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
branches:
- master
- 'v*'
pull_request: {}
jobs:
test:
name: Node 12.x - ubuntu
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v4
- name: install dependencies
run: yarn install --frozen-lockfile
- run: yarn lint
- run: yarn test
nodeX:
name: Node ${{ matrix.node-version }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}-latest
timeout-minutes: 10
needs: [test]
strategy:
matrix:
os: [ubuntu, windows]
node-version: [10.x, 12.x, 14.x, 16.x]
# excluded because it is the `test` job above
exclude:
- os: ubuntu
node-version: 12.x
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v4
with:
node-version: ${{ matrix.node-version }}
- name: install dependencies
run: yarn install --frozen-lockfile --ignore-engines
- run: yarn test
floating-dependencies:
name: Floating Dependencies
runs-on: ubuntu-latest
timeout-minutes: 10
needs: [test]
steps:
- uses: actions/checkout@v2
- uses: volta-cli/action@v4
with:
node-version: 14.x
- name: install dependencies
run: yarn install --no-lockfile
- run: yarn test