From 846741fbad2c20b2851a2fb7ac4b768fbaa7d501 Mon Sep 17 00:00:00 2001 From: Luke Parker Date: Sun, 5 Nov 2023 00:59:55 -0400 Subject: [PATCH] nextest --- .github/actions/build-dependencies/action.yml | 4 ++++ .github/workflows/coins-tests.yml | 2 +- .github/workflows/common-tests.yml | 2 +- .github/workflows/crypto-tests.yml | 2 +- .github/workflows/message-queue-tests.yml | 2 +- .github/workflows/mini-tests.yml | 2 +- .github/workflows/monero-tests.yaml | 6 +++--- .github/workflows/tests.yml | 9 +++++---- 8 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/actions/build-dependencies/action.yml b/.github/actions/build-dependencies/action.yml index 8717be4e2..157e4d90d 100644 --- a/.github/actions/build-dependencies/action.yml +++ b/.github/actions/build-dependencies/action.yml @@ -54,5 +54,9 @@ runs: components: ${{ inputs.rust-components }} targets: wasm32-unknown-unknown, riscv32imac-unknown-none-elf + - name: Install nextest + shell: bash + run: cargo install cargo-nextest --locked + # - name: Cache Rust # uses: Swatinem/rust-cache@a95ba195448af2da9b00fb742d14ffaaf3c21f43 diff --git a/.github/workflows/coins-tests.yml b/.github/workflows/coins-tests.yml index 255003743..3358f140f 100644 --- a/.github/workflows/coins-tests.yml +++ b/.github/workflows/coins-tests.yml @@ -30,7 +30,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features \ -p bitcoin-serai \ -p ethereum-serai \ -p monero-generators \ diff --git a/.github/workflows/common-tests.yml b/.github/workflows/common-tests.yml index 17ce42465..98341f7a3 100644 --- a/.github/workflows/common-tests.yml +++ b/.github/workflows/common-tests.yml @@ -26,7 +26,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features \ -p std-shims \ -p zalloc \ -p serai-db \ diff --git a/.github/workflows/crypto-tests.yml b/.github/workflows/crypto-tests.yml index 13f7a33ef..480e13a4b 100644 --- a/.github/workflows/crypto-tests.yml +++ b/.github/workflows/crypto-tests.yml @@ -28,7 +28,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features \ -p flexible-transcript \ -p ff-group-tests \ -p dalek-ff-group \ diff --git a/.github/workflows/message-queue-tests.yml b/.github/workflows/message-queue-tests.yml index bdc5f233e..714a6dd46 100644 --- a/.github/workflows/message-queue-tests.yml +++ b/.github/workflows/message-queue-tests.yml @@ -35,4 +35,4 @@ jobs: github-token: ${{ inputs.github-token }} - name: Run message-queue Docker tests - run: cd tests/message-queue && GITHUB_CI=true RUST_BACKTRACE=1 cargo test + run: cd tests/message-queue && GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest diff --git a/.github/workflows/mini-tests.yml b/.github/workflows/mini-tests.yml index 4ee6f64e0..7dc908e58 100644 --- a/.github/workflows/mini-tests.yml +++ b/.github/workflows/mini-tests.yml @@ -25,4 +25,4 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run Tests - run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p mini-serai + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features -p mini-serai diff --git a/.github/workflows/monero-tests.yaml b/.github/workflows/monero-tests.yaml index 511535b57..4cd2f0b5b 100644 --- a/.github/workflows/monero-tests.yaml +++ b/.github/workflows/monero-tests.yaml @@ -28,7 +28,7 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run Unit Tests Without Features - run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --lib + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --package monero-serai --lib # Doesn't run unit tests with features as the tests workflow will @@ -51,9 +51,9 @@ jobs: - name: Run Integration Tests Without Features # Runs with the binaries feature so the binaries build # https://github.com/rust-lang/cargo/issues/8396 - run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --features binaries --test '*' + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --package monero-serai --features binaries --test '*' - name: Run Integration Tests # Don't run if the the tests workflow also will if: ${{ matrix.version != 'v0.18.2.0' }} - run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --package monero-serai --all-features --test '*' + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --package monero-serai --all-features --test '*' diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 3ca433477..8342fed67 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,13 +38,14 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features \ -p serai-message-queue \ -p serai-processor-messages \ -p serai-processor \ -p tendermint-machine \ -p tributary-chain \ - -p serai-coordinator + -p serai-coordinator \ + -p serai-docker-tests test-substrate: runs-on: ubuntu-latest @@ -58,7 +59,7 @@ jobs: - name: Run Tests run: | - GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features \ + GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features \ -p serai-primitives \ -p serai-coins-primitives \ -p serai-coins-pallet \ @@ -81,4 +82,4 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} - name: Run Tests - run: GITHUB_CI=true RUST_BACKTRACE=1 cargo test --all-features -p serai-client + run: GITHUB_CI=true RUST_BACKTRACE=1 cargo nextest --all-features -p serai-client