chore: codecov added #1
Workflow file for this run
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: | |
pull_request: | |
branches: | |
- main | |
- master | |
types: | |
- opened | |
- synchronize | |
permissions: read-all | |
jobs: | |
main-branch-tests: | |
name: Run Tests on Main Branch PR | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Check Current Working Directory | |
run: | | |
pwd | |
working-directory: . | |
- name: Set Node 20 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: Install Node.js Dependencies | |
run: npm i | |
working-directory: . | |
- name: Run Tests | |
run: npm test | |
working-directory: . | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true |