Skip to content

Commit

Permalink
ci: add codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
superical committed Mar 27, 2024
1 parent 0d9cfed commit 4221ec9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@ jobs:
- run: sudo apt-get install -y lcov
- run: npm ci --no-fund --no-audit
- run: npm run test:coverage
- uses: actions/upload-artifact@v3
with:
name: test-coverage
path: ./coverage/lcov.info

test-build:
name: Test Build
Expand All @@ -30,3 +34,18 @@ jobs:
- uses: foundry-rs/foundry-toolchain@v1
- run: npm ci --no-fund --no-audit --ignore-scripts
- run: npm run build

coverage:
name: Test Coverage
needs: [ run-tests ]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Download coverage
uses: actions/download-artifact@v3
with:
name: test-coverage
- uses: codecov/codecov-action@v3
with:
fail_ci_if_error: true
verbose: true

0 comments on commit 4221ec9

Please sign in to comment.