1name: Randomized Tests
2
3concurrency: randomized-tests
4
5on:
6 push:
7 branches:
8 - main
9 - randomized-tests-runner
10 schedule:
11 - cron: '*/15 * * * *'
12
13env:
14 CARGO_TERM_COLOR: always
15 CARGO_INCREMENTAL: 0
16 RUST_BACKTRACE: 1
17 OPERATIONS: 200
18 ITERATIONS: 10000
19
20jobs:
21 tests:
22 name: Run randomized tests
23 runs-on:
24 - self-hosted
25 - randomized-tests
26 steps:
27 - name: Install Rust
28 run: |
29 rustup set profile minimal
30 rustup update stable
31
32 - name: Install Node
33 uses: actions/setup-node@v2
34 with:
35 node-version: '16'
36
37 - name: Checkout repo
38 uses: actions/checkout@v2
39 with:
40 clean: false
41 submodules: 'recursive'
42
43 - name: Select seed
44 run: |
45 set -eu
46 seed=$(od -A n -N 8 -t u8 /dev/urandom | xargs)
47 echo "seed: ${seed}"
48 echo "SEED=${seed}" >> $GITHUB_ENV
49
50 - name: Run tests
51 run: cargo test --release --package collab random