-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
63 additions
and
63 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 |
---|---|---|
@@ -1,40 +1,40 @@ | ||
name: Continuous Integration | ||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
|
||
jobs: | ||
test: | ||
name: Forge tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
test: | ||
name: Forge tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build --sizes | ||
id: build | ||
|
||
- name: Run Forge tests | ||
run: | | ||
forge test -vvv --gas-report | ||
id: test | ||
- name: Run Forge tests | ||
run: | | ||
forge test -vvv --gas-report | ||
id: test | ||
|
||
- name: Code coverage | ||
run: | | ||
forge coverage --report lcov | ||
- name: Code coverage | ||
run: | | ||
forge coverage --report lcov | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: lcov.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} | ||
file: lcov.info |
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 |
---|---|---|
|
@@ -2,7 +2,7 @@ name: Release | |
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
|
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,39 +1,39 @@ | ||
name: Slither Analysis | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
pull_request: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
|
||
jobs: | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
static-analysis: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
- name: Install Foundry | ||
uses: onbjerg/foundry-toolchain@v1 | ||
with: | ||
version: nightly | ||
|
||
- name: Install dependencies | ||
run: forge install | ||
- name: Install dependencies | ||
run: forge install | ||
|
||
- name: Run Slither | ||
env: | ||
TERM: xterm-color | ||
uses: crytic/slither-action@main | ||
continue-on-error: true | ||
id: slither | ||
with: | ||
slither-config: "slither.config.json" | ||
solc-version: 0.8.16 | ||
sarif: results.sarif | ||
- name: Run Slither | ||
env: | ||
TERM: xterm-color | ||
uses: crytic/slither-action@main | ||
continue-on-error: true | ||
id: slither | ||
with: | ||
slither-config: "slither.config.json" | ||
solc-version: 0.8.16 | ||
sarif: results.sarif | ||
|
||
# Below call currently raises Error: Advanced Security must be enabled for this repository to use code scanning. | ||
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository | ||
# - name: Upload SARIF file for margin | ||
# uses: github/codeql-action/upload-sarif@v2 | ||
# id: upload-1 | ||
# with: | ||
# sarif_file: ${{ steps.slither.outputs.sarif }} | ||
# Below call currently raises Error: Advanced Security must be enabled for this repository to use code scanning. | ||
# https://docs.github.com/en/code-security/code-scanning/automatically-scanning-your-code-for-vulnerabilities-and-errors/setting-up-code-scanning-for-a-repository | ||
# - name: Upload SARIF file for margin | ||
# uses: github/codeql-action/upload-sarif@v2 | ||
# id: upload-1 | ||
# with: | ||
# sarif_file: ${{ steps.slither.outputs.sarif }} |