Publish #541
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
name: Send test coverage to coveralls | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Use Node.js 16.x | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16.x | |
- name: yarn install, yarn test | |
# fake-indexeddb using `structureClone` which import in node^18, | |
# and we import the polyfill with `import 'core-js/stable/structured-clone'` | |
# to resolve it, so here we pass --ignore-engines after `yarn install` to ignore the error. | |
run: | | |
yarn install --ignore-engines | |
yarn test --coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 |