Rescue strategy audit fixes #10
Workflow file for this run
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: Enigma Dark Invariants - Echidna Workflow | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| env: | |
| FOUNDRY_PROFILE: ci | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| echidna: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| mode: [property, assertion] # Define the modes here | |
| 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 test/enigma-dark-invariants/Tester.t.sol --build-info | |
| - name: Run Echidna ${{ matrix.mode == 'property' && 'Property' || 'Assertion' }} Mode | |
| uses: crytic/echidna-action@v2 | |
| with: | |
| files: . | |
| contract: Tester | |
| config: test/enigma-dark-invariants/_config/echidna_config_ci.yaml | |
| crytic-args: --ignore-compile | |
| test-mode: ${{ matrix.mode == 'assertion' && 'assertion' || '' }} |