-
Notifications
You must be signed in to change notification settings - Fork 3
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 #67 from ronin-chain/script/add-more-postchecks
script: add more postchecks
- Loading branch information
Showing
122 changed files
with
2,653 additions
and
3,588 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,63 @@ | ||
name: Post Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- mainnet | ||
- testnet | ||
- "feature/*" | ||
- "features/*" | ||
- "feat/*" | ||
- "feats/*" | ||
pull_request: | ||
branches: | ||
- mainnet | ||
- testnet | ||
- "feature/*" | ||
- "features/*" | ||
- "feat/*" | ||
- "feats/*" | ||
- "release/*" | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Foundry project | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | ||
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Update package with soldeer | ||
run: forge soldeer update | ||
|
||
- name: Recursively update dependencies | ||
run: | | ||
chmod +x ./update-deps.sh | ||
./update-deps.sh | ||
id: update-deps | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build | ||
id: build | ||
|
||
- name: Run PostCheck CI | ||
run: | | ||
./run.sh PostCheckCI -f ronin-mainnet -vvvv | ||
id: postcheck |
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,69 @@ | ||
name: Slither Analyze | ||
|
||
on: | ||
push: | ||
branches: | ||
- mainnet | ||
- testnet | ||
- "feature/*" | ||
- "features/*" | ||
- "feat/*" | ||
- "feats/*" | ||
pull_request: | ||
branches: | ||
- mainnet | ||
- testnet | ||
- "feature/*" | ||
- "features/*" | ||
- "feat/*" | ||
- "feats/*" | ||
- "release/*" | ||
|
||
env: | ||
FOUNDRY_PROFILE: ci | ||
|
||
jobs: | ||
check: | ||
strategy: | ||
fail-fast: true | ||
|
||
name: Foundry project | ||
runs-on: ubuntu-latest | ||
|
||
env: | ||
ETHERSCAN_API_KEY: ${{ secrets.ETHERSCAN_API_KEY }} | ||
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }} | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
|
||
- name: Update package with soldeer | ||
run: forge soldeer update | ||
|
||
- name: Recursively update dependencies | ||
run: | | ||
chmod +x ./update-deps.sh | ||
./update-deps.sh | ||
id: update-deps | ||
|
||
- name: Run Forge build | ||
run: | | ||
forge --version | ||
forge build | ||
id: build | ||
|
||
- name: Install Slither for security analysis | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install -y python3-pip | ||
python3 -m pip install slither-analyzer | ||
- name: Run Slither analysis | ||
run: | | ||
slither . --exclude-low --exclude-medium --exclude-informational --exclude-dependencies --filter-paths "dependencies/|mocks/" --exclude-optimization | ||
id: slither |
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 |
---|---|---|
@@ -1,11 +1,4 @@ | ||
[submodule "lib/prb-test"] | ||
branch = release-v0 | ||
path = lib/prb-test | ||
url = https://github.com/PaulRBerg/prb-test | ||
[submodule "lib/prb-math"] | ||
path = lib/prb-math | ||
url = https://github.com/PaulRBerg/prb-math | ||
branch = release-v4 | ||
[submodule "lib/openzeppelin-contracts"] | ||
path = lib/openzeppelin-contracts | ||
url = https://github.com/openzeppelin/openzeppelin-contracts |
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.