Stress Test #152
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: Stress Test | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| duration_minutes: | |
| description: "Stress test duration in minutes" | |
| required: false | |
| default: "60" | |
| type: string | |
| schedule: | |
| - cron: "0 6 * * *" | |
| permissions: | |
| contents: read | |
| jobs: | |
| stress-test: | |
| name: Stress Test (${{ inputs.duration_minutes || '60' }} min) | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 75 | |
| env: | |
| RUST_BACKTRACE: 1 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: Install nextest | |
| uses: taiki-e/install-action@nextest | |
| - name: Run stress test | |
| run: RUSTFLAGS="--cfg tokio_unstable" cargo nextest run --all-features --stress-duration '${{ inputs.duration_minutes || '60' }}m' |