-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
addressing feedback: add workflows and fix comments
- Loading branch information
Showing
4 changed files
with
74 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Code Coverage | ||
|
||
on: | ||
push: | ||
pull_request: | ||
merge_group: | ||
|
||
jobs: | ||
coverage: | ||
name: coverage | ||
runs-on: ubuntu-latest-16core | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
cache: false | ||
|
||
- name: forge version | ||
run: forge --version | ||
|
||
- name: Run coverage | ||
run: | | ||
make coverage | ||
sudo apt-get install lcov | ||
lcov --remove lcov.info -o lcov.info 'test/*' 'script/*' | ||
- name: Edit lcov.info | ||
run: | | ||
cat lcov.info | sed '/.*\/test\/.*/,/TN:/d' > tmp.info && mv tmp.info lcov.info | ||
- name: Coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
path-to-lcov: "./lcov.info" | ||
parallel: true | ||
|
||
finish: | ||
needs: coverage | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Coveralls Finished | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
parallel-finished: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.PHONY: build test | ||
|
||
### Build ### | ||
|
||
build: | ||
forge build --force --sizes | ||
|
||
### Test ### | ||
|
||
test: | ||
forge test | ||
|
||
coverage: | ||
forge coverage --report lcov |
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