Skip to content

Commit

Permalink
update coverage workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanRHall committed Nov 14, 2024
1 parent d6ca3f1 commit da8a6d6
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/cov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ jobs:
with:
version: nightly

- name: Check test coverage
- name: Install LCOV
uses: hrishikesh-kadam/setup-lcov@f5da1b26b0dcf5d893077a3c4f29cf78079c841d # v1.0.0

- name: Generate coverage report
run: |
make coverage
make coverage-report
id: coverage

- name: Report code coverage
uses: zgosalvez/github-actions-report-lcov@a546f89a65a0cdcd82a92ae8d65e74d450ff3fbc # v4.1.4
with:
# update-comment: true TODO - add access token so that action can comment with coverage report
coverage-files: lcov.info
minimum-coverage: 12
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,6 @@ docs/
# env files
.env
.envrc

# coverage report
lcov.info
17 changes: 9 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,14 +65,15 @@ endef
$(foreach chain,${CHAINS},$(foreach script,${SCRIPT_NAMES},$(eval $(call make-command-rule,${script},${chain}))))

# Other non-generic rules
install :; forge install
update :; forge update
build :; forge build
test :; forge test -vvv
coverage :; forge coverage -v --no-match-coverage "(script|test|examples|v0|mocks)"
clean :; forge clean
snapshot :; forge snapshot
fmt :; forge fmt
install :; forge install
update :; forge update
build :; forge build
test :; forge test -vvv
coverage :; forge coverage -v --no-match-coverage "(script|test|examples|v0|mocks)"
coverage-report :; forge coverage -v --no-match-coverage "(script|test|examples|v0|mocks)" --report lcov
clean :; forge clean
snapshot :; forge snapshot
fmt :; forge fmt

# List available scripts
list-scripts:
Expand Down

0 comments on commit da8a6d6

Please sign in to comment.