We have a project we’ve been trying to get a CI build running for with GitHub actions. It’s a Sapper project for which we’re using Jest for tests. We set a CI configuration to run our tests, which all run fine locally on both MacOS and Linux, but when the CI build attempts to run the tests, it just hangs.
Has anyone else noticed an issue with Jest tests hanging when running in a GitHub Action like this? This is what our build config looked like:
name: CI
on: [push]
jobs:
build:
name: Test
runs-on: ubuntu-16.04
steps:
- uses: actions/checkout@v1
with:
node-version: '12.x'
- run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
- run: yarn install
- run: yarn lint
- run: yarn build
- run: yarn test
env:
ISOLATE: true