@@ -3,88 +3,103 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
+ - main
6
7
- master
7
- tags :
8
- - ' * '
9
- pull_request :
10
- schedule :
11
- - cron : ' 0 4 * * 1 ' # Mondays at 4am
8
+ pull_request : {}
9
+
10
+ concurrency :
11
+ group : ci-${{ github.head_ref || github.ref }}
12
+ cancel-in-progress : true
12
13
13
14
jobs :
14
15
test :
15
- name : Tests
16
+ name : " Tests"
16
17
runs-on : ubuntu-latest
18
+ timeout-minutes : 10
17
19
18
20
steps :
19
- - name : Checkout code
20
- uses : actions/checkout@v2
21
- - name : Setup node.js
22
- uses : volta-cli/action@v1
23
- - name : Install dependencies
24
- run : yarn --frozen-lockfile
21
+ - uses : actions/checkout@v3
22
+ - name : Install Node
23
+ uses : actions/setup-node@v3
24
+ with :
25
+ node-version : 14.x
26
+ cache : npm
27
+ - name : Install Dependencies
28
+ run : npm ci
25
29
- name : Lint
26
- run : yarn lint
27
- - name : Test
28
- run : yarn test:ember
30
+ run : npm run lint
31
+ - name : Run Tests
32
+ run : npm run test:ember
33
+
34
+ floating :
35
+ name : " Floating Dependencies"
36
+ runs-on : ubuntu-latest
37
+ timeout-minutes : 10
38
+
39
+ steps :
40
+ - uses : actions/checkout@v3
41
+ - uses : actions/setup-node@v3
42
+ with :
43
+ node-version : 14.x
44
+ cache : npm
45
+ - name : Install Dependencies
46
+ run : npm install --no-shrinkwrap
47
+ - name : Run Tests
48
+ run : npm run test:ember
49
+
29
50
test-os :
30
- name : Tests (Windows & MacOs)
51
+ name : Tests Full Matrix ${{ matrix.os }} Node version ${{ matrix.node }}
31
52
runs-on : ${{ matrix.os }}
32
53
33
54
strategy :
55
+ fail-fast : false
34
56
matrix :
35
57
node : ['10', '12', '14']
36
- os : [ubuntu-latest, macOS-latest, windows-latest]
58
+ os : [ubuntu-latest, windows-latest]
37
59
38
60
steps :
39
61
- name : Checkout code
40
62
uses : actions/checkout@v2
41
- - name : Setup node.js
42
- uses : volta-cli/action@v1
63
+ - name : Install Node
64
+ uses : actions/setup-node@v3
65
+ with :
66
+ node-version : ${{ matrix.node }}
67
+ cache : npm
43
68
- name : Install dependencies
44
- run : yarn --frozen-lockfile
45
- - name : Lint
46
- run : yarn lint
69
+ run : npm i
47
70
- name : Test
48
- run : yarn test:ember
49
-
71
+ run : npm run test:ember
50
72
51
- test-no-lock :
52
- name : Floating Dependencies
73
+ try-scenarios :
74
+ name : ${{ matrix.try-scenario }}
53
75
runs-on : ubuntu-latest
76
+ needs : " test"
77
+ timeout-minutes : 10
54
78
55
- steps :
56
- - name : Checkout code
57
- uses : actions/checkout@v2
58
- - name : Setup node.js
59
- uses : volta-cli/action@v1
60
- - name : Install dependencies
61
- run : yarn --no-lockfile
62
- - name : Test
63
- run : yarn test:ember
64
-
65
- test-try :
66
- name : Additional Tests
67
- runs-on : ubuntu-latest
68
- needs :
69
- - test
70
79
strategy :
80
+ fail-fast : false
71
81
matrix :
72
- scenario :
82
+ try- scenario :
73
83
- ember-lts-3.16
74
84
- ember-lts-3.20
85
+ - ember-lts-3.24
86
+ - ember-lts-3.28
87
+ - ember-lts-4.4
88
+ - ember-lts-4.8
75
89
- ember-release
76
90
- ember-beta
77
91
- ember-canary
78
- - ember-default-with-jquery
79
- - ember-classic
80
- - embroider-tests
92
+ - embroider-safe
93
+ - embroider-optimized
81
94
82
95
steps :
83
- - name : Checkout code
84
- uses : actions/checkout@v2
85
- - name : Setup node.js
86
- uses : volta-cli/action@v1
87
- - name : Install dependencies
88
- run : yarn --frozen-lockfile
89
- - name : Test
90
- run : yarn ember try:one ${{ matrix.scenario }}
96
+ - uses : actions/checkout@v3
97
+ - name : Install Node
98
+ uses : actions/setup-node@v3
99
+ with :
100
+ node-version : 14.x
101
+ cache : npm
102
+ - name : Install Dependencies
103
+ run : npm ci
104
+ - name : Run Tests
105
+ run : ./node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
0 commit comments