1616      fail-fast : false 
1717      matrix :
1818        os : [windows-2019] 
19-         node-version : [18, 16, 14, 12, 10, 8, 6, 4 ] 
19+         node-version : [22, 20, 18 ] 
2020        configuration : [wsl, native] 
2121
2222    steps :
@@ -30,80 +30,29 @@ jobs:
3030      if : matrix.configuration == 'wsl' 
3131      env :
3232        ESLINT_VERSION : 7 
33-         TRAVIS_NODE_VERSION : ${{ matrix.node-version }} 
3433      run : | 
3534        curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash 
3635        export NVM_DIR="$HOME/.nvm" 
3736        [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm 
3837        nvm install --latest-npm ${{ matrix.node-version }} 
3938
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 
7640        npm run copy-metafiles 
7741        npm run pretest 
7842        npm run tests-only 
7943
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' 
8846      run : npm install 
8947
90-     - name : install the latest version of nyc 
48+     - name : install the latest version of nyc in Native  
9149      if : matrix.configuration == 'native' 
9250      run : npm install nyc@latest --no-save 
9351
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' 
10454      env :
10555        ESLINT_VERSION : 7 
106-         TRAVIS_NODE_VERSION : ${{ matrix.node-version }} 
10756      run : | 
10857        npm run copy-metafiles 
10958        bash ./tests/dep-time-travel.sh 2>&1 
0 commit comments