Skip to content

Commit

Permalink
chore: CI will run test:xs, but failures won't block PRs
Browse files Browse the repository at this point in the history
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
  • Loading branch information
warner committed Mar 16, 2021
1 parent 668ab1f commit 41748eb
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,41 @@ jobs:
run: cd packages/zoe && yarn test
env:
ESM_DISABLE_CACHE: true

test-xs:
continue-on-error: true # XS failures won't block CI
# BEGIN-TEST-BOILERPLATE
needs: build
runs-on: ubuntu-latest
strategy:
matrix:
node-version: ['14.x']
steps:
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
# END-TEST-BOILERPLATE
# BEGIN-RESTORE-BOILERPLATE
- name: restore built files
id: built
uses: actions/cache@v1
with:
path: .
key: ${{ runner.os }}-${{ matrix.node-version }}-built-${{ github.sha }}
- uses: actions/checkout@v1
with:
submodules: 'true'
if: steps.built.outputs.cache-hit != 'true'
- name: yarn install
run: yarn install
if: steps.built.outputs.cache-hit != 'true'
- name: yarn build
run: yarn build
if: steps.built.outputs.cache-hit != 'true'
# END-RESTORE-BOILERPLATE

- name: yarn test (xs)
timeout-minutes: 20
run: yarn test:xs
env:
ESM_DISABLE_CACHE: true

0 comments on commit 41748eb

Please sign in to comment.