Skip to content

Commit

Permalink
nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
kayabaNerve committed Nov 5, 2023
1 parent 97fedf6 commit 846741f
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 12 deletions.
4 changes: 4 additions & 0 deletions .github/actions/build-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/coins-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/common-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/crypto-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/message-queue-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion .github/workflows/mini-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/monero-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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 '*'
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 \
Expand All @@ -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

0 comments on commit 846741f

Please sign in to comment.