Skip to content

Commit 41748eb

Browse files
committed
chore: CI will run test:xs, but failures won't block PRs
The amount of Node.js code that runs under `test:xs` is minimal and not very interesting, so save time by only running test:xs under node-14.x . closes #2647
1 parent 668ab1f commit 41748eb

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/test-all-packages.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -402,3 +402,41 @@ jobs:
402402
run: cd packages/zoe && yarn test
403403
env:
404404
ESM_DISABLE_CACHE: true
405+
406+
test-xs:
407+
continue-on-error: true # XS failures won't block CI
408+
# BEGIN-TEST-BOILERPLATE
409+
needs: build
410+
runs-on: ubuntu-latest
411+
strategy:
412+
matrix:
413+
node-version: ['14.x']
414+
steps:
415+
- uses: actions/setup-node@v1
416+
with:
417+
node-version: ${{ matrix.node-version }}
418+
# END-TEST-BOILERPLATE
419+
# BEGIN-RESTORE-BOILERPLATE
420+
- name: restore built files
421+
id: built
422+
uses: actions/cache@v1
423+
with:
424+
path: .
425+
key: ${{ runner.os }}-${{ matrix.node-version }}-built-${{ github.sha }}
426+
- uses: actions/checkout@v1
427+
with:
428+
submodules: 'true'
429+
if: steps.built.outputs.cache-hit != 'true'
430+
- name: yarn install
431+
run: yarn install
432+
if: steps.built.outputs.cache-hit != 'true'
433+
- name: yarn build
434+
run: yarn build
435+
if: steps.built.outputs.cache-hit != 'true'
436+
# END-RESTORE-BOILERPLATE
437+
438+
- name: yarn test (xs)
439+
timeout-minutes: 20
440+
run: yarn test:xs
441+
env:
442+
ESM_DISABLE_CACHE: true

0 commit comments

Comments
 (0)