Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
haythemsellami committed Jul 3, 2024
1 parent 8ee4b59 commit 3eba2f3
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 35 deletions.
63 changes: 31 additions & 32 deletions .github/workflows/echidna.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,38 @@
name: Echidna Test
# name: Echidna Test

on:
push:
branches:
- main
pull_request:
# on:
# push:
# branches:
# - main
# pull_request:

env:
FOUNDRY_PROFILE: ci
# env:
# FOUNDRY_PROFILE: ci

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
# concurrency:
# group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
# cancel-in-progress: true

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
# jobs:
# test:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout repository
# uses: actions/checkout@v3
# with:
# submodules: recursive

- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
# - name: Install Foundry
# uses: foundry-rs/foundry-toolchain@v1
# with:
# version: nightly

- name: Compile contracts
run: |
forge build --build-info
# - name: Compile contracts
# run: |
# forge build --build-info

- name: Run Echidna
uses: crytic/echidna-action@v2
with:
files: test/echidna/CryticERC4626Harness.t.sol
contract: CryticERC4626Harness
crytic-args: --foundry-ignore-compile --ignore-compile
# - name: Run Echidna
# uses: crytic/echidna-action@v2
# with:
# files: test/echidna/CryticERC4626Harness.t.sol
# contract: CryticERC4626Harness
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
version: nightly

- name: Run foundry build
run: forge build --force --sizes
run: forge build --force

- name: Run foundry fmt check
run: forge fmt --check
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {WithdrawalQueue} from "../../src/plugin/WithdrawalQueue.sol";
import {AllocationPoints} from "../../src/core/module/AllocationPoints.sol";
import {TestERC20Token} from "crytic-properties/ERC4626/util/TestERC20Token.sol";

contract CryticERC4626Harness is CryticERC4626PropertyTests {
contract CryticERC4626TestsHarness is CryticERC4626PropertyTests {
uint256 public constant CASH_RESERVE_ALLOCATION_POINTS = 1000e18;

// core modules
Expand Down
4 changes: 3 additions & 1 deletion test/echidna/config/echidna.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,6 @@ coverageFormats: ["lcov", "html"]
quiet: false

# concurrent workers
workers: 10
workers: 10

crytic-args: ["--foundry-ignore-compile", "--ignore-compile"]

0 comments on commit 3eba2f3

Please sign in to comment.