Merge pull request #7 from roninjin10/11-03-feat_Add_CI/CD_to_op-wagmi #1
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
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
name: Tests | |
jobs: | |
check: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: "Setup" | |
uses: ./.github/actions/setup | |
- name: Run tests | |
run: pnpm test:cov | |
# Adds coverage to github pr | |
- name: 'Report Coverage' | |
if: always() # Also generate the report if tests are failing | |
uses: davelosert/vitest-coverage-report-action@v2 | |
with: | |
name: "op-wagmi" | |
working-directory: "." |