Merge pull request #302 from stabilitydao/dev-leaf #252
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: Codecov | |
on: | |
push: | |
branches: [main, master] | |
pull_request: | |
branches: [main, master] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/* | |
- name: Install dependencies | |
run: yarn install | |
- name: Run tests and collect coverage | |
run: yarn test:unit --coverage | |
- name: Upload coverage report to Codecov | |
uses: codecov/[email protected] | |
env: | |
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}} |