@@ -25,22 +25,22 @@ jobs:
25
25
26
26
steps :
27
27
- uses : actions/checkout@v2
28
- - name : Installing with latest Node.js
28
+ - name : Installing with LTS Node.js
29
29
uses : actions/setup-node@v2
30
30
with :
31
- node-version : ' *'
31
+ node-version : ' lts/ *'
32
32
check-latest : true
33
33
- name : NPM Install
34
34
run : npm install
35
35
- name : Switching to Node.js ${{ matrix.node-version }} to run tests
36
36
uses : actions/setup-node@v2
37
- if : " ${{ matrix.node-version != '*' }}"
37
+ if : " ${{ matrix.node-version != 'lts/ *' }}"
38
38
with :
39
39
node-version : ${{ matrix.node-version }}
40
40
check-latest : true
41
41
- name : Linting
42
42
run : npm run format:ci
43
- if : " ${{ matrix.node-version == '*' }}"
43
+ if : " ${{ matrix.node-version == 'lts/ *' }}"
44
44
- name : Run tests against next@latest
45
45
run : npm test
46
46
canary :
@@ -61,18 +61,18 @@ jobs:
61
61
if : github.ref_name == 'main'
62
62
steps :
63
63
- uses : actions/checkout@v2
64
- - name : Installing with latest Node.js
64
+ - name : Installing with LTS Node.js
65
65
uses : actions/setup-node@v2
66
66
with :
67
- node-version : ' *'
67
+ node-version : ' lts/ *'
68
68
check-latest : true
69
69
- name : NPM Install
70
70
run : npm install
71
71
- name : Install Next.js Canary
72
72
run : npm install -D next@canary --legacy-peer-deps
73
73
- name : Switching to Node.js ${{ matrix.node-version }} to run tests
74
74
uses : actions/setup-node@v2
75
- if : " ${{ matrix.node-version != '*' }}"
75
+ if : " ${{ matrix.node-version != 'lts/ *' }}"
76
76
with :
77
77
node-version : ${{ matrix.node-version }}
78
78
check-latest : true
0 commit comments