Start work randomized test runner GH action workflow
This commit is contained in:
parent
e655a6c767
commit
253411bfd0
1 changed files with 51 additions and 0 deletions
51
.github/workflows/randomized_tests.yml
vendored
Normal file
51
.github/workflows/randomized_tests.yml
vendored
Normal file
|
@ -0,0 +1,51 @@
|
|||
name: Randomized Tests
|
||||
|
||||
concurrency: randomized-tests
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- randomized-tests-runner
|
||||
schedule:
|
||||
- cron: '*/15 * * * *'
|
||||
|
||||
env:
|
||||
CARGO_TERM_COLOR: always
|
||||
CARGO_INCREMENTAL: 0
|
||||
RUST_BACKTRACE: 1
|
||||
OPERATIONS: 200
|
||||
ITERATIONS: 10000
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
name: Run randomized tests
|
||||
runs-on:
|
||||
- self-hosted
|
||||
- randomized-tests
|
||||
steps:
|
||||
- name: Install Rust
|
||||
run: |
|
||||
rustup set profile minimal
|
||||
rustup update stable
|
||||
|
||||
- name: Install Node
|
||||
uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: '16'
|
||||
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
clean: false
|
||||
submodules: 'recursive'
|
||||
|
||||
- name: Select seed
|
||||
run: |
|
||||
set -eu
|
||||
seed=$(od -A n -N 8 -t u8 /dev/urandom | xargs)
|
||||
echo "seed: ${seed}"
|
||||
echo "SEED=${seed}" >> $GITHUB_ENV
|
||||
|
||||
- name: Run tests
|
||||
run: cargo test --release --package collab random
|
Loading…
Add table
Add a link
Reference in a new issue