generated from ScopeLift/foundry-template
-
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.
Exclude the Governor from coverage reports & turn off slither for now
- Loading branch information
Showing
1 changed file
with
21 additions
and
21 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 |
---|---|---|
|
@@ -56,7 +56,7 @@ jobs: | |
- name: Filter directories | ||
run: | | ||
sudo apt update && sudo apt install -y lcov | ||
lcov --remove lcov.info 'test/*' 'script/*' --output-file lcov.info --rc lcov_branch_coverage=1 | ||
lcov --remove lcov.info 'test/*' 'script/*' 'src/GuineaPigGovernor.sol' --output-file lcov.info --rc lcov_branch_coverage=1 | ||
# This step posts a detailed coverage report as a comment and deletes previous comments on | ||
# each push. The below step is used to fail coverage if the specified coverage threshold is | ||
|
@@ -101,23 +101,23 @@ jobs: | |
scopelint --version | ||
scopelint check | ||
slither-analyze: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
security-events: write | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Run Slither | ||
uses: crytic/[email protected] | ||
id: slither # Required to reference this step in the next step. | ||
with: | ||
fail-on: none # Required to avoid failing the CI run regardless of findings. | ||
sarif: results.sarif | ||
slither-args: --filter-paths "./lib|./test" --exclude naming-convention,solc-version | ||
|
||
- name: Upload SARIF file | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
# slither-analyze: | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: read | ||
# security-events: write | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
|
||
# - name: Run Slither | ||
# uses: crytic/[email protected] | ||
# id: slither # Required to reference this step in the next step. | ||
# with: | ||
# fail-on: none # Required to avoid failing the CI run regardless of findings. | ||
# sarif: results.sarif | ||
# slither-args: --filter-paths "./lib|./test" --exclude naming-convention,solc-version | ||
|
||
# - name: Upload SARIF file | ||
# uses: github/codeql-action/upload-sarif@v2 | ||
# with: | ||
# sarif_file: ${{ steps.slither.outputs.sarif }} |