-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- adding support for code coverage analytics - SDUtilityPoolTest.test_RequestWithdraw - cleanup test with fuzzer range issues - adding manual workflow dispatch
- Loading branch information
1 parent
441fb70
commit 5caad1d
Showing
12 changed files
with
1,549 additions
and
295 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
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,27 @@ | ||
name: Coverage | ||
on: [workflow_dispatch, pull_request, push] | ||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: npm install | ||
run: | | ||
npm ci --frozen-lockfile --production | ||
- name: Run Forge coverage | ||
run: | | ||
forge coverage --report lcov | ||
id: coverage | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
files: lcov.info | ||
fail_ci_if_error: 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,29 @@ | ||
name: Lint | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
checks: write | ||
contents: write | ||
|
||
jobs: | ||
run-linters: | ||
name: Run linters | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.github_token }} | ||
|
||
- name: Set up node | ||
- name: Set up nodejs | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install dependencies | ||
run: npm install --frozen-lockfile | ||
|
||
- name: Run linters | ||
uses: wearerequired/[email protected] | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
prettier: true | ||
prettier_extensions: 'js,json,jsx,md,ts,tsx,yaml,yml,sol' | ||
continue_on_error: false | ||
- name: install dependencies (npm) | ||
run: npm ci --frozen-lockfile | ||
- name: Prettier | ||
run: npm run prettier:check | ||
- name: Solhint | ||
run: npm run lint |
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 |
---|---|---|
@@ -1,11 +1,9 @@ | ||
name: Slither Analysis | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
analyze: | ||
runs-on: ubuntu-latest | ||
|
@@ -20,15 +18,13 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.github_token }} | ||
|
||
- name: Run Slither | ||
uses: crytic/[email protected] | ||
id: slither | ||
with: | ||
node-version: 16 | ||
sarif: results.sarif | ||
fail-on: config | ||
|
||
- if: failure() | ||
uses: Ayrx/[email protected] | ||
with: | ||
|
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 |
---|---|---|
@@ -1,36 +1,31 @@ | ||
name: Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
permissions: | ||
checks: write | ||
contents: write | ||
|
||
jobs: | ||
unit-tests: | ||
name: Unit Tests | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out Git repository | ||
uses: actions/checkout@v2 | ||
with: | ||
token: ${{ secrets.github_token }} | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Set up node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16 | ||
|
||
node-version: 18 | ||
- name: Install dependencies | ||
run: npm install --frozen-lockfile | ||
|
||
- name: Compile | ||
run: npx hardhat compile | ||
|
||
- name: Run unit tests | ||
run: npx hardhat node & npx hardhat test | ||
run: npm ci --frozen-lockfile | ||
- name: solidity unit tests | ||
run: forge test -v |
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.