Skip to content

Instantly share code, notes, and snippets.

@nican0r
Created July 22, 2024 12:21
Show Gist options
  • Select an option

  • Save nican0r/b6ca665034fd0eef797d1e6cdf9264dc to your computer and use it in GitHub Desktop.

Select an option

Save nican0r/b6ca665034fd0eef797d1e6cdf9264dc to your computer and use it in GitHub Desktop.
Echidna GitHub CI Action
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