-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(setting-up-ci): add deep-invariant ci sttings
- Loading branch information
1 parent
316d557
commit 16de33c
Showing
2 changed files
with
62 additions
and
0 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,31 @@ | ||
name: Deep Fuzz and Invariant Tests | ||
on: | ||
push: | ||
branches: | ||
- development | ||
paths: | ||
- '**.sol' | ||
|
||
jobs: | ||
deep-fuzz-and-invariant: | ||
name: Run Deep Fuzz and Invariant Tests | ||
runs-on: ubuntu-22.04 | ||
env: | ||
FOUNDRY_PROFILE: intense | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly-5be158ba6dc7c798a6f032026fe60fc01686b33b | ||
|
||
- name: Forge install | ||
working-directory: packages/contracts | ||
run: forge install | ||
|
||
- name: Run Deep Fuzz and Invariant Tests | ||
working-directory: packages/contracts | ||
run: forge test |
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,31 @@ | ||
name: Invariant Tests | ||
on: | ||
push: | ||
branches: | ||
- development | ||
paths: | ||
- '**.sol' | ||
|
||
jobs: | ||
invariant-tests: | ||
name: Run Invariant Tests | ||
runs-on: ubuntu-22.04 | ||
env: | ||
FOUNDRY_PROFILE: intense | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Foundry | ||
uses: foundry-rs/toolchain@v1 | ||
with: | ||
version: nightly-5be158ba6dc7c79a8f6302026fe60fc01606b33b | ||
|
||
- name: Forge install | ||
working-directory: packages/contracts | ||
run: forge install | ||
|
||
- name: Run Invariant Tests | ||
working-directory: packages/contracts | ||
run: forge test |