Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Start work randomized test runner GH action workflow

Max Brunsfeld253411bfd0f7
diff --git a/.github/workflows/randomized_tests.yml b/.github/workflows/randomized_tests.yml
new file mode 100644
index 00000000000..b9f5bbcbd37
--- /dev/null
+++ b/.github/workflows/randomized_tests.yml
@@ -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