|
69 | 69 | env: |
70 | 70 | FUZZ_ITERATIONS: 256 |
71 | 71 |
|
| 72 | + deep-fuzz: |
| 73 | + name: Deep Fuzz (2k cases each -- nightly) |
| 74 | + if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
| 75 | + runs-on: ubuntu-latest |
| 76 | + timeout-minutes: 120 |
| 77 | + defaults: |
| 78 | + run: |
| 79 | + working-directory: contracts |
| 80 | + steps: |
| 81 | + - uses: actions/checkout@v4 |
| 82 | + |
| 83 | + - name: Install Rust toolchain |
| 84 | + uses: dtolnay/rust-toolchain@stable |
| 85 | + with: |
| 86 | + toolchain: 1.91.0 |
| 87 | + targets: wasm32v1-none |
| 88 | + components: rustfmt, clippy |
| 89 | + |
| 90 | + - name: Cache Rust dependencies |
| 91 | + uses: Swatinem/rust-cache@v2 |
| 92 | + with: |
| 93 | + workspaces: contracts |
| 94 | + |
72 | 95 | deep-fuzz: |
73 | 96 | name: Deep Fuzz (2k cases each -- nightly) |
74 | 97 | if: github.event_name == 'schedule' || github.event_name == 'workflow_dispatch' |
@@ -97,6 +120,34 @@ jobs: |
97 | 120 | env: |
98 | 121 | FUZZ_ITERATIONS: 2000 |
99 | 122 |
|
| 123 | + deep-fuzz-pr: |
| 124 | + name: Deep Fuzz (500 cases each -- PR) |
| 125 | + if: github.event_name == 'pull_request' |
| 126 | + runs-on: ubuntu-latest |
| 127 | + timeout-minutes: 30 |
| 128 | + defaults: |
| 129 | + run: |
| 130 | + working-directory: contracts |
| 131 | + steps: |
| 132 | + - uses: actions/checkout@v4 |
| 133 | + |
| 134 | + - name: Install Rust toolchain |
| 135 | + uses: dtolnay/rust-toolchain@stable |
| 136 | + with: |
| 137 | + toolchain: 1.91.0 |
| 138 | + targets: wasm32v1-none |
| 139 | + components: rustfmt, clippy |
| 140 | + |
| 141 | + - name: Cache Rust dependencies |
| 142 | + uses: Swatinem/rust-cache@v2 |
| 143 | + with: |
| 144 | + workspaces: contracts |
| 145 | + |
| 146 | + - name: Run deep fuzz tests |
| 147 | + run: cargo test --features testutils -- fuzz |
| 148 | + env: |
| 149 | + FUZZ_ITERATIONS: 500 |
| 150 | + |
100 | 151 | coverage: |
101 | 152 | name: Coverage (tarpaulin) |
102 | 153 | if: github.event_name == 'pull_request' |
|
0 commit comments