|
41 | 41 |
|
42 | 42 | - run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* |
43 | 43 | - run: yarn install --frozen-lockfile --check-files |
44 | | - - run: node run-tests.js --timings --write-timings -g 1/1 |
| 44 | + # - run: node run-tests.js --timings --write-timings -g 1/1 |
45 | 45 | - name: Check docs only change |
46 | 46 | run: echo ::set-output name=DOCS_CHANGE::$(node skip-docs-change.js echo 'not-docs-only-change') |
47 | 47 | id: docs-change |
@@ -132,138 +132,138 @@ jobs: |
132 | 132 | - run: node run-tests.js --type unit |
133 | 133 | if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
134 | 134 |
|
135 | | - testIntegration: |
136 | | - name: Test Integration |
137 | | - runs-on: ubuntu-latest |
138 | | - needs: build |
139 | | - env: |
140 | | - NEXT_TELEMETRY_DISABLED: 1 |
141 | | - NEXT_TEST_JOB: 1 |
142 | | - HEADLESS: true |
143 | | - strategy: |
144 | | - fail-fast: false |
145 | | - matrix: |
146 | | - group: [1, 2, 3, 4, 5, 6] |
147 | | - steps: |
148 | | - - name: Setup node |
149 | | - uses: actions/setup-node@v2 |
150 | | - if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
151 | | - with: |
152 | | - node-version: 14 |
153 | | - |
154 | | - - run: echo ${{needs.build.outputs.docsChange}} |
155 | | - |
156 | | - # https://github.com/actions/virtual-environments/issues/1187 |
157 | | - - name: tune linux network |
158 | | - run: sudo ethtool -K eth0 tx off rx off |
159 | | - |
160 | | - - uses: actions/cache@v2 |
161 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
162 | | - id: restore-build |
163 | | - with: |
164 | | - path: ./* |
165 | | - key: ${{ github.sha }} |
166 | | - |
167 | | - # TODO: remove after we fix watchpack watching too much |
168 | | - - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
169 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
170 | | - |
171 | | - - run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3 |
172 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
173 | | - |
174 | | - testElectron: |
175 | | - name: Test Electron |
176 | | - runs-on: ubuntu-latest |
177 | | - needs: build |
178 | | - env: |
179 | | - NEXT_TELEMETRY_DISABLED: 1 |
180 | | - NEXT_TEST_JOB: 1 |
181 | | - HEADLESS: true |
182 | | - TEST_ELECTRON: 1 |
183 | | - steps: |
184 | | - - name: Setup node |
185 | | - uses: actions/setup-node@v2 |
186 | | - if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
187 | | - with: |
188 | | - node-version: 14 |
189 | | - |
190 | | - - uses: actions/cache@v2 |
191 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
192 | | - id: restore-build |
193 | | - with: |
194 | | - path: ./* |
195 | | - key: ${{ github.sha }} |
196 | | - |
197 | | - # TODO: remove after we fix watchpack watching too much |
198 | | - - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
199 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
200 | | - |
201 | | - - run: cd test/integration/with-electron/app && yarn |
202 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
203 | | - |
204 | | - - run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js |
205 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
206 | | - |
207 | | - testYarnPnP: |
208 | | - runs-on: ubuntu-latest |
209 | | - needs: build |
210 | | - env: |
211 | | - NODE_OPTIONS: '--unhandled-rejections=strict' |
212 | | - YARN_COMPRESSION_LEVEL: '0' |
213 | | - steps: |
214 | | - - name: Setup node |
215 | | - uses: actions/setup-node@v2 |
216 | | - if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
217 | | - with: |
218 | | - node-version: 14 |
219 | | - |
220 | | - - uses: actions/cache@v2 |
221 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
222 | | - id: restore-build |
223 | | - with: |
224 | | - path: ./* |
225 | | - key: ${{ github.sha }} |
226 | | - |
227 | | - - run: bash ./scripts/test-pnp.sh |
228 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 135 | + # testIntegration: |
| 136 | + # name: Test Integration |
| 137 | + # runs-on: ubuntu-latest |
| 138 | + # needs: build |
| 139 | + # env: |
| 140 | + # NEXT_TELEMETRY_DISABLED: 1 |
| 141 | + # NEXT_TEST_JOB: 1 |
| 142 | + # HEADLESS: true |
| 143 | + # strategy: |
| 144 | + # fail-fast: false |
| 145 | + # matrix: |
| 146 | + # group: [1, 2, 3, 4, 5, 6] |
| 147 | + # steps: |
| 148 | + # - name: Setup node |
| 149 | + # uses: actions/setup-node@v2 |
| 150 | + # if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
| 151 | + # with: |
| 152 | + # node-version: 14 |
| 153 | + |
| 154 | + # - run: echo ${{needs.build.outputs.docsChange}} |
| 155 | + |
| 156 | + # # https://github.com/actions/virtual-environments/issues/1187 |
| 157 | + # - name: tune linux network |
| 158 | + # run: sudo ethtool -K eth0 tx off rx off |
| 159 | + |
| 160 | + # - uses: actions/cache@v2 |
| 161 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 162 | + # id: restore-build |
| 163 | + # with: |
| 164 | + # path: ./* |
| 165 | + # key: ${{ github.sha }} |
| 166 | + |
| 167 | + # # TODO: remove after we fix watchpack watching too much |
| 168 | + # - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
| 169 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 170 | + |
| 171 | + # - run: xvfb-run node run-tests.js --timings -g ${{ matrix.group }}/6 -c 3 |
| 172 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 173 | + |
| 174 | + # testElectron: |
| 175 | + # name: Test Electron |
| 176 | + # runs-on: ubuntu-latest |
| 177 | + # needs: build |
| 178 | + # env: |
| 179 | + # NEXT_TELEMETRY_DISABLED: 1 |
| 180 | + # NEXT_TEST_JOB: 1 |
| 181 | + # HEADLESS: true |
| 182 | + # TEST_ELECTRON: 1 |
| 183 | + # steps: |
| 184 | + # - name: Setup node |
| 185 | + # uses: actions/setup-node@v2 |
| 186 | + # if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
| 187 | + # with: |
| 188 | + # node-version: 14 |
| 189 | + |
| 190 | + # - uses: actions/cache@v2 |
| 191 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 192 | + # id: restore-build |
| 193 | + # with: |
| 194 | + # path: ./* |
| 195 | + # key: ${{ github.sha }} |
| 196 | + |
| 197 | + # # TODO: remove after we fix watchpack watching too much |
| 198 | + # - run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p |
| 199 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 200 | + |
| 201 | + # - run: cd test/integration/with-electron/app && yarn |
| 202 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 203 | + |
| 204 | + # - run: xvfb-run node run-tests.js test/integration/with-electron/test/index.test.js |
| 205 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 206 | + |
| 207 | + # testYarnPnP: |
| 208 | + # runs-on: ubuntu-latest |
| 209 | + # needs: build |
| 210 | + # env: |
| 211 | + # NODE_OPTIONS: '--unhandled-rejections=strict' |
| 212 | + # YARN_COMPRESSION_LEVEL: '0' |
| 213 | + # steps: |
| 214 | + # - name: Setup node |
| 215 | + # uses: actions/setup-node@v2 |
| 216 | + # if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
| 217 | + # with: |
| 218 | + # node-version: 14 |
| 219 | + |
| 220 | + # - uses: actions/cache@v2 |
| 221 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 222 | + # id: restore-build |
| 223 | + # with: |
| 224 | + # path: ./* |
| 225 | + # key: ${{ github.sha }} |
| 226 | + |
| 227 | + # - run: bash ./scripts/test-pnp.sh |
| 228 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
229 | 229 |
|
230 | 230 | testsPass: |
231 | 231 | name: thank you, next |
232 | 232 | runs-on: ubuntu-latest |
233 | | - needs: [lint, checkPrecompiled, testIntegration, testUnit, testYarnPnP] |
| 233 | + needs: [lint, checkPrecompiled, testUnit] |
234 | 234 | steps: |
235 | 235 | - run: exit 0 |
236 | 236 |
|
237 | | - testLegacyWebpack: |
238 | | - name: Webpack 4 (Basic, Production, Acceptance) |
239 | | - runs-on: ubuntu-latest |
240 | | - needs: build |
241 | | - env: |
242 | | - NEXT_TELEMETRY_DISABLED: 1 |
243 | | - NEXT_TEST_JOB: 1 |
244 | | - HEADLESS: true |
245 | | - NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1 |
246 | | - |
247 | | - steps: |
248 | | - - name: Setup node |
249 | | - uses: actions/setup-node@v2 |
250 | | - if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
251 | | - with: |
252 | | - node-version: 14 |
253 | | - |
254 | | - # https://github.com/actions/virtual-environments/issues/1187 |
255 | | - - name: tune linux network |
256 | | - run: sudo ethtool -K eth0 tx off rx off |
257 | | - |
258 | | - - uses: actions/cache@v2 |
259 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
260 | | - id: restore-build |
261 | | - with: |
262 | | - path: ./* |
263 | | - key: ${{ github.sha }} |
264 | | - |
265 | | - - run: xvfb-run node run-tests.js test/integration/{basic,fallback-modules,link-ref,production,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js |
266 | | - if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 237 | + # testLegacyWebpack: |
| 238 | + # name: Webpack 4 (Basic, Production, Acceptance) |
| 239 | + # runs-on: ubuntu-latest |
| 240 | + # needs: build |
| 241 | + # env: |
| 242 | + # NEXT_TELEMETRY_DISABLED: 1 |
| 243 | + # NEXT_TEST_JOB: 1 |
| 244 | + # HEADLESS: true |
| 245 | + # NEXT_PRIVATE_TEST_WEBPACK4_MODE: 1 |
| 246 | + |
| 247 | + # steps: |
| 248 | + # - name: Setup node |
| 249 | + # uses: actions/setup-node@v2 |
| 250 | + # if: ${{ steps.docs-change.outputs.docsChange != 'docs only change' }} |
| 251 | + # with: |
| 252 | + # node-version: 14 |
| 253 | + |
| 254 | + # # https://github.com/actions/virtual-environments/issues/1187 |
| 255 | + # - name: tune linux network |
| 256 | + # run: sudo ethtool -K eth0 tx off rx off |
| 257 | + |
| 258 | + # - uses: actions/cache@v2 |
| 259 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
| 260 | + # id: restore-build |
| 261 | + # with: |
| 262 | + # path: ./* |
| 263 | + # key: ${{ github.sha }} |
| 264 | + |
| 265 | + # - run: xvfb-run node run-tests.js test/integration/{basic,fallback-modules,link-ref,production,async-modules,font-optimization,ssr-ctx}/test/index.test.js test/acceptance/*.test.js |
| 266 | + # if: ${{needs.build.outputs.docsChange != 'docs only change'}} |
267 | 267 |
|
268 | 268 | testFirefox: |
269 | 269 | name: Test Firefox (production) |
|
0 commit comments