Skip to content

Commit

Permalink
ci: setup codecov (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
aquariuslt authored May 23, 2024
1 parent ec4700e commit f99f2ff
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
17 changes: 4 additions & 13 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,8 @@ jobs:
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- run: yarn coverage --report lcov
- name: Setup LCOV
uses: hrishikesh-kadam/setup-lcov@v1
- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@v3
- name: Codecov coverage report
uses: codecov/codecov-action@v4
with:
coverage-files: lcov.info
artifact-name: code-coverage-report
github-token: ${{ secrets.PR_COMMENT_TOKEN }}
update-comment: true
- name: Report line coverage detail
uses: romeovs/lcov-reporter-action@v0.2.16
with:
github-token: ${{ secrets.PR_COMMENT_TOKEN }}
lcov-file: ./lcov.info
file: ./lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
8 changes: 7 additions & 1 deletion .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
on: [ push, pull_request, workflow_dispatch ]
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
workflow_dispatch:


name: integration-test

Expand Down
7 changes: 6 additions & 1 deletion .github/workflows/invariant-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
on: [ workflow_dispatch ]
on:
push:
branches: [ main, dev ]
pull_request:
branches: [ main, dev ]
workflow_dispatch:

name: invariant-test

Expand Down

0 comments on commit f99f2ff

Please sign in to comment.