Merge pull request #168 from binary-butterfly/dependabot/npm_and_yarn… #256
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
name: tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
cache: 'npm' | |
- run: npm install | |
- run: npm run build:prod | |
- run: npm run typecheck | |
- run: npm run coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |