-
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.
Merge pull request #15 from blockful-io/staking-test
Unhappy path on Staking tests
- Loading branch information
Showing
8 changed files
with
309 additions
and
110 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 |
---|---|---|
|
@@ -59,7 +59,7 @@ jobs: | |
)" >> $GITHUB_ENV | ||
- name: Run coverage | ||
run: forge coverage --report summary --report lcov | ||
run: forge coverage --report summary --report lcov --ir-minimum | ||
|
||
# To ignore coverage for certain directories modify the paths in this step as needed. The | ||
# below default ignores coverage results for the test and script directories. Alternatively, | ||
|
@@ -125,34 +125,34 @@ jobs: | |
fi | ||
slither-analyze: | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
actions: "read" | ||
contents: "read" | ||
security-events: "write" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Install Bun" | ||
uses: "oven-sh/setup-bun@v1" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "bun install --frozen-lockfile" | ||
|
||
- name: "Run Slither analysis" | ||
uses: "crytic/[email protected]" | ||
id: "slither" | ||
with: | ||
fail-on: "none" | ||
sarif: "results.sarif" | ||
|
||
- name: "Upload SARIF file to GitHub code scanning" | ||
uses: "github/codeql-action/upload-sarif@v2" | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
|
||
- name: "Add summary" | ||
run: | | ||
echo "## Slither result" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY | ||
runs-on: "ubuntu-latest" | ||
permissions: | ||
actions: "read" | ||
contents: "read" | ||
security-events: "write" | ||
steps: | ||
- name: "Check out the repo" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Install Bun" | ||
uses: "oven-sh/setup-bun@v1" | ||
|
||
- name: "Install the Node.js dependencies" | ||
run: "bun install" | ||
|
||
- name: "Run Slither analysis" | ||
uses: "crytic/[email protected]" | ||
id: "slither" | ||
with: | ||
fail-on: "none" | ||
sarif: "results.sarif" | ||
|
||
- name: "Upload SARIF file to GitHub code scanning" | ||
uses: "github/codeql-action/upload-sarif@v2" | ||
with: | ||
sarif_file: ${{ steps.slither.outputs.sarif }} | ||
|
||
- name: "Add summary" | ||
run: | | ||
echo "## Slither result" >> $GITHUB_STEP_SUMMARY | ||
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY |
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
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
Oops, something went wrong.