@@ -3,89 +3,78 @@ name: CI
3
3
on :
4
4
push :
5
5
branches :
6
- - master
7
6
- main
8
- - " v* "
9
- pull_request :
7
+ - master
8
+ pull_request : {}
10
9
11
- env :
12
- NODE_VERSION : 10
13
- PERCY_PARALLEL_NONCE : ${{ github.run_id }}-${{ github.run_number }}
14
- PERCY_PARALLEL_TOTAL : 1
15
- FORCE_COLOR : 1
10
+ concurrency :
11
+ group : ci-${{ github.head_ref || github.ref }}
12
+ cancel-in-progress : true
16
13
17
14
jobs :
18
- lint :
19
- name : Linting
15
+ test :
16
+ name : " Tests "
20
17
runs-on : ubuntu-latest
18
+ env :
19
+ PERCY_TOKEN : ee0a9d5c1122d6a21852edf19b5b309aaec18077fb3900c98995c90bc48ed240
20
+ RUN_PERCY_TESTS : true
21
21
22
22
steps :
23
23
- uses : actions/checkout@v2
24
+ - uses : mansona/npm-lockfile-version@v1
24
25
- uses : actions/setup-node@v2
25
26
with :
26
- node-version : ${{ env.NODE_VERSION }}
27
-
27
+ node-version : 12.x
28
+ cache : npm
28
29
- run : npm i -g npm@7
29
30
- run : npm ci
30
31
- run : npm run lint
32
+ - run : npx percy exec -- npm run test
31
33
32
- floating-dependencies :
33
- name : Floating Dependencies
34
- runs-on : ubuntu-latest
35
-
36
- steps :
37
- - uses : actions/checkout@v2
38
- - uses : actions/setup-node@v2
39
- with :
40
- node-version : ${{ env.NODE_VERSION }}
41
-
42
- - run : npm i -g npm@7
43
- - run : npm install --no-package-lock
44
- - run : npm test
45
-
46
- test :
47
- name : Tests
34
+ floating :
35
+ name : " Floating Dependencies"
48
36
runs-on : ubuntu-latest
49
- env :
50
- PERCY_TOKEN : ee0a9d5c1122d6a21852edf19b5b309aaec18077fb3900c98995c90bc48ed240
51
- RUN_PERCY_TESTS : true
52
-
53
37
54
38
steps :
55
39
- uses : actions/checkout@v2
56
- - uses : mansona/npm-lockfile-version@v1
57
40
- uses : actions/setup-node@v2
58
41
with :
59
- node-version : ${{ env.NODE_VERSION }}
60
-
42
+ node-version : 12.x
43
+ cache : npm
61
44
- run : npm i -g npm@7
62
- - run : npm ci
63
- - run : npx percy exec -- npm run test
45
+ - run : npm install --no-shrinkwrap
46
+ - run : npm run test:ember
64
47
65
48
try-scenarios :
66
- name : " ember-try: ${{ matrix.ember- try-scenario }}"
49
+ name : ${{ matrix.try-scenario }}
67
50
runs-on : ubuntu-latest
68
- timeout-minutes : 10
69
- needs : test
51
+ needs : ' test'
70
52
71
53
strategy :
54
+ fail-fast : false
72
55
matrix :
73
- ember-try-scenario :
74
- - ' ember-lts-3.16'
75
- - ' ember-lts-3.20'
76
- - ' ember-release'
77
- - ' ember-beta'
78
- - ' ember-canary'
79
- - ' ember-default-with-jquery'
80
- - ' ember-classic'
56
+ try-scenario :
57
+ - ember-lts-3.16
58
+ - ember-lts-3.20
59
+ - ember-lts-3.24
60
+ - ember-lts-3.28
61
+ - ember-release
62
+ - ember-beta
63
+ - ember-canary
64
+ - ember-classic
65
+ - ember-default-with-jquery
66
+ - embroider-safe
67
+ - embroider-optimized
68
+ - no-deprecations
69
+ - ember-release-no-deprecations
81
70
82
71
steps :
83
72
- uses : actions/checkout@v2
84
73
- uses : actions/setup-node@v2
85
74
with :
86
- node-version : ${{ env.NODE_VERSION }}
87
-
75
+ node-version : 12.x
76
+ cache : npm
88
77
- run : npm i -g npm@7
89
78
- run : npm ci
90
- - name : test
91
- run : node_modules/.bin/ember try:one ${{ matrix.ember- try-scenario }} --skip-cleanup
79
+ - name : Run Tests
80
+ run : ./ node_modules/.bin/ember try:one ${{ matrix.try-scenario }}
0 commit comments