test(redis): stop assuming equal-stake winner #6
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: Echidna | |
| on: | |
| pull_request: | |
| workflow_dispatch: {} | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: echidna-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| env: | |
| NODEJS_VERSION: '20' | |
| ECHIDNA_IMAGE: ghcr.io/crytic/echidna/echidna:v2.3.1 | |
| jobs: | |
| echidna: | |
| name: Echidna / ${{ matrix.contract }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 180 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| contract: | |
| - EchidnaStakeRegistryHarness | |
| - EchidnaPriceOracleHarness | |
| - EchidnaPostageStampHarness | |
| - EchidnaRedistributionHarness | |
| - EchidnaRedistributionClaimHarness | |
| - EchidnaSystemHarness | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js and Yarn | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: ${{ env.NODEJS_VERSION }} | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn install --frozen-lockfile | |
| - name: Run Echidna | |
| env: | |
| ECHIDNA_CONTRACT: ${{ matrix.contract }} | |
| # 9000s leaves ~30 min for checkout, yarn, compile, and image pull | |
| # inside the 180-minute job cap so a timeout still uploads artifacts. | |
| ECHIDNA_TIMEOUT: '9000' | |
| run: yarn echidna | |
| - name: Upload reproducers and logs | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: echidna-${{ matrix.contract }} | |
| path: | | |
| echidna/logs/ | |
| echidna/corpus/by-contract/ | |
| crytic-export/ | |
| if-no-files-found: warn | |
| retention-days: 14 |