Merge pull request #223 from XiaooSe/main #809
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: jest | |
on: | |
push: | |
branches: | |
- main # Change this to your default branch | |
pull_request: | |
branches: | |
- main # Change this to your default branch | |
jobs: | |
Codecov: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- uses: c-hive/gha-yarn-cache@v2 | |
- name: Install modules | |
run: yarn install | |
- name: build | |
run: yarn run build | |
- name: Run Test | |
run: yarn test --silent --forceExit --passWithNoTests | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v1 | |
with: | |
directory: ./coverage/ |