Created
July 22, 2024 12:21
-
-
Save nican0r/b6ca665034fd0eef797d1e6cdf9264dc to your computer and use it in GitHub Desktop.
Echidna GitHub CI Action
This file contains hidden or 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
| name: Echidna Test | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| 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: Compile contracts | |
| run: | | |
| forge build --build-info | |
| - name: Run Echidna | |
| uses: crytic/echidna-action@v2 | |
| with: | |
| files: . | |
| contract: CryticTester | |
| crytic-args: --ignore-compile | |
| config: echidna.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment