aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-01-26 08:32:19 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-01-26 08:37:25 +0300
commit8f79139b78602dd913a8731a7b8838263ee99f0a (patch)
treee970541f9671e5c07b2d72bdb45c33d655b2c693 /.github/workflows
parentc5296b870ae2103e4ff006ad5abae6b37985ed36 (diff)
downloadniri-8f79139b78602dd913a8731a7b8838263ee99f0a.tar.gz
niri-8f79139b78602dd913a8731a7b8838263ee99f0a.tar.bz2
niri-8f79139b78602dd913a8731a7b8838263ee99f0a.zip
CI: Add a randomized tests job
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 5b8a3151..887b32f7 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -70,6 +70,41 @@ jobs:
- name: Test
run: cargo test --all --exclude niri-visual-tests ${{ matrix.release-flag }} -- --nocapture
+ # Job that runs randomized tests for a longer period of time.
+ randomized-tests:
+ strategy:
+ fail-fast: false
+
+ name: randomized tests
+ runs-on: ubuntu-24.04
+
+ env:
+ RUST_BACKTRACE: 1
+ PROPTEST_CASES: 200000
+ PROPTEST_MAX_LOCAL_REJECTS: 200000
+ PROPTEST_MAX_GLOBAL_REJECTS: 200000
+ PROPTEST_MAX_SHRINK_ITERS: 200000
+
+ steps:
+ - uses: actions/checkout@v4
+ with:
+ show-progress: false
+
+ - name: Install dependencies
+ run: |
+ sudo apt-get update -y
+ sudo apt-get install -y ${{ env.DEPS_APT }}
+
+ - uses: dtolnay/rust-toolchain@stable
+
+ - uses: Swatinem/rust-cache@v2
+
+ - name: Build tests
+ run: cargo test --no-run --all --exclude niri-visual-tests
+
+ - name: Test
+ run: cargo test --all --exclude niri-visual-tests
+
visual-tests:
strategy:
fail-fast: false