@@ -50,17 +50,13 @@ jobs:
50
50
uses : wagoid/commitlint-github-action@v1
51
51
52
52
test :
53
- name : Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}, experimentalUseImportModule ${{ matrix.experimental-use-import-module }}
53
+ name : Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack ${{ matrix.webpack-version }}
54
54
55
55
strategy :
56
56
matrix :
57
57
os : [ubuntu-latest, windows-latest, macos-latest]
58
58
node-version : [10.x, 12.x, 14.x]
59
59
webpack-version : [4, latest]
60
- experimental-use-import-module : [false, true]
61
- exclude :
62
- - webpack-version : 4
63
- experimental-use-import-module : true
64
60
65
61
runs-on : ${{ matrix.os }}
66
62
@@ -91,11 +87,50 @@ jobs:
91
87
run : npm i webpack@${{ matrix.webpack-version }}
92
88
93
89
- name : Run tests for webpack version ${{ matrix.webpack-version }}
94
- if : ${{ !matrix.experimental-use-import-module }}
95
90
run : npm run test:coverage -- --ci
96
91
97
- - name : Run optional tests for webpack version ${{ matrix.webpack-version }} with import module
98
- if : ${{ matrix.experimental-use-import-module }}
92
+ - name : Submit coverage data to codecov
93
+ uses : codecov/codecov-action@v1
94
+ with :
95
+ token : ${{ secrets.CODECOV_TOKEN }}
96
+
97
+ test2 :
98
+ name : Test - ${{ matrix.os }} - Node v${{ matrix.node-version }}, Webpack latest, experimentalUseImportModule
99
+
100
+ strategy :
101
+ matrix :
102
+ os : [ubuntu-latest, windows-latest, macos-latest]
103
+ node-version : [10.x, 12.x, 14.x]
104
+
105
+ runs-on : ${{ matrix.os }}
106
+
107
+ steps :
108
+ - name : Setup Git
109
+ if : matrix.os == 'windows-latest'
110
+ run : git config --global core.autocrlf input
111
+
112
+ - uses : actions/checkout@v2
113
+
114
+ - name : Use Node.js ${{ matrix.node-version }}
115
+ uses : actions/setup-node@v1
116
+ with :
117
+ node-version : ${{ matrix.node-version }}
118
+
119
+ - name : Use latest NPM on ubuntu/macos
120
+ if : matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest'
121
+ run : sudo npm i -g npm
122
+
123
+ - name : Use latest NPM on windows
124
+ if : matrix.os == 'windows-latest'
125
+ run : npm i -g npm
126
+
127
+ - name : Install dependencies
128
+ run : npm i
129
+
130
+ - name : Install webpack latest
131
+ run : npm i webpack@latest
132
+
133
+ - name : Run tests for webpack version latest with experimentalUseImportModule
99
134
run : EXPERIMENTAL_USE_IMPORT_MODULE=true npm run test:coverage -- --ci
100
135
101
136
- name : Submit coverage data to codecov
0 commit comments