16
16
fail-fast : false
17
17
matrix :
18
18
os : [windows-2019]
19
- node-version : [18, 16, 14, 12, 10, 8, 6, 4 ]
19
+ node-version : [22, 20, 18 ]
20
20
configuration : [wsl, native]
21
21
22
22
steps :
@@ -30,80 +30,29 @@ jobs:
30
30
if : matrix.configuration == 'wsl'
31
31
env :
32
32
ESLINT_VERSION : 7
33
- TRAVIS_NODE_VERSION : ${{ matrix.node-version }}
34
33
run : |
35
34
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
36
35
export NVM_DIR="$HOME/.nvm"
37
36
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
38
37
nvm install --latest-npm ${{ matrix.node-version }}
39
38
40
- if [ ${{ matrix.node-version }} -ge 4 ] && [ ${{ matrix.node-version }} -lt 6 ]; then
41
- npm install eslint@4 --no-save --ignore-scripts
42
- npm install
43
- npm install [email protected] --no-save
44
- npm uninstall @angular-eslint/template-parser @typescript-eslint/parser --no-save
45
- fi
46
- if [ ${{ matrix.node-version }} -ge 6 ] && [ ${{ matrix.node-version }} -lt 7 ]; then
47
- npm install eslint@5 --no-save --ignore-scripts
48
- npm install
49
- npm uninstall @angular-eslint/template-parser --no-save
50
- npm install [email protected] @typescript-eslint/parser@3 --no-save
51
- fi
52
- if [ ${{ matrix.node-version }} -ge 7 ] && [ ${{ matrix.node-version }} -lt 8 ]; then
53
- npm install eslint@6 --no-save --ignore-scripts
54
- npm install
55
- npm install [email protected] typescript-eslint-parser@20 --no-save
56
- npm uninstall @angular-eslint/template-parser --no-save
57
- fi
58
- if [ ${{ matrix.node-version }} -eq 8 ]; then
59
- npm install eslint@6 --no-save --ignore-scripts
60
- npm install
61
- npm uninstall @angular-eslint/template-parser --no-save
62
- npm install @typescript-eslint/parser@3 --no-save
63
- fi
64
- if [ ${{ matrix.node-version }} -gt 8 ] && [ ${{ matrix.node-version }} -lt 10 ]; then
65
- npm install eslint@7 --no-save --ignore-scripts
66
- npm install
67
- npm install @typescript-eslint/parser@3 --no-save
68
- fi
69
- if [ ${{ matrix.node-version }} -ge 10 ] && [ ${{ matrix.node-version }} -lt 12 ]; then
70
- npm install
71
- npm install @typescript-eslint/parser@4 --no-save
72
- fi
73
- if [ ${{ matrix.node-version }} -ge 12 ]; then
74
- npm install
75
- fi
39
+ npm install
76
40
npm run copy-metafiles
77
41
npm run pretest
78
42
npm run tests-only
79
43
80
- - name : install dependencies for node <= 10
81
- if : matrix.node-version <= '10' && matrix.configuration == 'native'
82
- run : |
83
- npm install --legacy-peer-deps
84
- npm install eslint@7 --no-save
85
-
86
- - name : Install dependencies for node > 10
87
- if : matrix.node-version > '10' && matrix.configuration == 'native'
44
+ - name : Install dependencies in Native
45
+ if : matrix.configuration == 'native'
88
46
run : npm install
89
47
90
- - name : install the latest version of nyc
48
+ - name : install the latest version of nyc in Native
91
49
if : matrix.configuration == 'native'
92
50
run : npm install nyc@latest --no-save
93
51
94
- - name : copy metafiles for node <= 8
95
- if : matrix.node-version <= 8 && matrix.configuration == 'native'
96
- env :
97
- ESLINT_VERSION : 6
98
- TRAVIS_NODE_VERSION : ${{ matrix.node-version }}
99
- run : |
100
- npm run copy-metafiles
101
- bash ./tests/dep-time-travel.sh 2>&1
102
- - name : copy metafiles for Node > 8
103
- if : matrix.node-version > 8 && matrix.configuration == 'native'
52
+ - name : copy metafiles in Native
53
+ if : matrix.configuration == 'native'
104
54
env :
105
55
ESLINT_VERSION : 7
106
- TRAVIS_NODE_VERSION : ${{ matrix.node-version }}
107
56
run : |
108
57
npm run copy-metafiles
109
58
bash ./tests/dep-time-travel.sh 2>&1
0 commit comments