@@ -23,13 +23,20 @@ jobs:
23
23
24
24
steps :
25
25
- uses : actions/checkout@v2
26
- - name : Use Node.js ${{ matrix.node-version }}
26
+ - name : Installing with latest Node.js
27
27
uses : actions/setup-node@v2
28
+ if : " ${{ matrix.node-version != '*' }}"
28
29
with :
29
- node-version : ${{ matrix.node-version }}
30
+ node-version : ' * '
30
31
check-latest : true
31
32
- name : NPM Install
32
33
run : npm ci
34
+ - name : Switching to Node.js ${{ matrix.node-version }} to run tests
35
+ uses : actions/setup-node@v2
36
+ if : " ${{ matrix.node-version != '*' }}"
37
+ with :
38
+ node-version : ${{ matrix.node-version }}
39
+ check-latest : true
33
40
- name : Linting
34
41
run : npm run format:ci
35
42
if : " ${{ matrix.node-version == '*' }}"
@@ -52,14 +59,21 @@ jobs:
52
59
53
60
steps :
54
61
- uses : actions/checkout@v2
55
- - name : Use Node.js ${{ matrix.node-version }}
62
+ - name : Installing with latest Node.js
56
63
uses : actions/setup-node@v2
64
+ if : " ${{ matrix.node-version != '*' }}"
57
65
with :
58
- node-version : ${{ matrix.node-version }}
66
+ node-version : ' * '
59
67
check-latest : true
60
68
- name : NPM Install
61
69
run : npm ci
62
70
- name : Install Next.js Canary
63
71
run : npm install -D next@canary --legacy-peer-deps
72
+ - name : Switching to Node.js ${{ matrix.node-version }} to run tests
73
+ uses : actions/setup-node@v2
74
+ if : " ${{ matrix.node-version != '*' }}"
75
+ with :
76
+ node-version : ${{ matrix.node-version }}
77
+ check-latest : true
64
78
- name : Run tests against next@canary
65
79
run : npm test
0 commit comments