docs: updated docs #12
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: Test | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
test: | |
name: Run tests | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Install dependencies | |
run: npm install | |
- name: Run jest | |
run: npm test -- --coverage | |
- name: Upload coverage to Codecov | |
run: npx codecov | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
# Only if needed | |
# - name: Upload coverage to Codacy | |
# run: bash <(curl -Ls https://coverage.codacy.com/get.sh) | |
# env: | |
# CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }} |