name: Stress Tests
on:
schedule:
- cron: '0 4 * * 1' workflow_dispatch:
concurrency:
group: stress-${{ github.sha }}
cancel-in-progress: true
jobs:
stress:
runs-on: ubuntu-latest
strategy:
matrix:
iteration: [1, 2, 3]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
- name: Install Rust toolchain
run: rustup show
- name: Cache cargo
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: stress-${{ runner.os }}-${{ hashFiles('**/Cargo.lock') }}
- name: Stress test iteration ${{ matrix.iteration }}
run: |
for run in $(seq 1 10); do
echo "=== Run $run/10 ==="
cargo test --lib -- --test-threads=1
done
timeout-minutes: 30