@@ -3,10 +3,15 @@ name: CI
33on :
44 push :
55 branches :
6+ - main
67 - master
78 - ' v*'
89 pull_request : {}
910
11+ concurrency :
12+ group : ci-${{ github.head_ref || github.ref }}
13+ cancel-in-progress : true
14+
1015jobs :
1116 lint :
1217 name : Lint
@@ -20,41 +25,47 @@ jobs:
2025
2126 - run : yarn install
2227 - run : yarn lint
23-
24- tests :
25- name : Tests
28+ test :
29+ name : " Tests"
2630 runs-on : ubuntu-latest
31+ timeout-minutes : 10
2732
2833 steps :
29- - uses : actions/checkout@v1
30- - uses : actions/setup-node@v1
34+ - uses : actions/checkout@v3
35+ - name : Install Node
36+ uses : actions/setup-node@v3
3137 with :
32- node-version : 14
33-
34- - run : yarn install
35- - run : yarn node-test-with-coverage
36-
37- floating-deps :
38- name : Tests (floating dependencies)
38+ node-version : 14.x
39+ cache : yarn
40+ - name : Install Dependencies
41+ run : yarn install --frozen-lockfile
42+ - name : Run Tests
43+ run : yarn node-test-with-coverage
44+
45+ floating :
46+ name : " Floating Dependencies"
3947 runs-on : ubuntu-latest
48+ timeout-minutes : 10
4049
4150 steps :
42- - uses : actions/checkout@v1
43- - uses : actions/setup-node@v1
51+ - uses : actions/checkout@v3
52+ - uses : actions/setup-node@v3
4453 with :
45- node-version : 14
46-
47- - run : yarn install --no-lockfile
48- - run : yarn node-test
54+ node-version : 14.x
55+ cache : yarn
56+ - name : Install Dependencies
57+ run : yarn install --no-lockfile
58+ - name : Run Tests
59+ run : yarn node-test
4960
5061 all-commands-smoke-tests :
5162 name : Tests (commands smoke test)
5263 runs-on : ubuntu-latest
5364
5465 needs :
5566 - lint
56- - tests
57- - floating-deps
67+ - test
68+ - floating
5869
5970 strategy :
6071 fail-fast : false
@@ -146,7 +157,7 @@ jobs:
146157
147158 needs :
148159 - lint
149- - tests
160+ - test
150161
151162 steps :
152163 - uses : actions/checkout@v1
@@ -172,7 +183,7 @@ jobs:
172183
173184 needs :
174185 - lint
175- - tests
186+ - test
176187
177188 steps :
178189 - uses : actions/checkout@v1
@@ -194,7 +205,7 @@ jobs:
194205
195206 needs :
196207 - lint
197- - tests
208+ - test
198209
199210 steps :
200211 - uses : actions/checkout@v1
0 commit comments