Use nextest

This commit is contained in:
Nehu 2022-11-11 11:44:06 +01:00
parent 7390946e9e
commit 0391fd1bf4
No known key found for this signature in database
GPG key ID: 78EB319889EB5FBF
2 changed files with 32 additions and 20 deletions

3
.config/nextest.toml Normal file
View file

@ -0,0 +1,3 @@
[profile.ci]
# Don't fail fast in CI to run the full test suite.
fail-fast = false

View file

@ -27,7 +27,25 @@ jobs:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Check - name: Check
run: cargo check run: cargo check
build: # TODO: not needed for now
# build:
# runs-on: ubuntu-latest
# needs: check
# steps:
# - name: Cache
# uses: actions/cache@v3.0.11
# with:
# path: |
# ~/.cargo/bin/
# ~/.cargo/registry/index/
# ~/.cargo/registry/cache/
# ~/.cargo/git/db/
# ~/cargo-target/
# key: "rust-build"
# - uses: actions/checkout@v3
# - name: Build
# run: cargo build
test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: check needs: check
steps: steps:
@ -41,24 +59,15 @@ jobs:
~/.cargo/git/db/ ~/.cargo/git/db/
~/cargo-target/ ~/cargo-target/
key: "rust-build" key: "rust-build"
# TODO: not needed for now - name: Install nextest
# - uses: actions/checkout@v3 uses: taiki-e/install-action@nextest
# - name: Build
# run: cargo build
test:
runs-on: ubuntu-latest
needs: build
steps:
- name: Cache
uses: actions/cache@v3.0.11
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
~/cargo-target/
key: "rust-build"
- uses: actions/checkout@v3 - uses: actions/checkout@v3
# - name: Run unit tests
# run: cargo nextest run
- name: Run unit tests - name: Run unit tests
run: cargo test uses: actions-rs/cargo@v1
with:
command: nextest
args: run --all-features --profile ci
- name: Run documentation tests
run: cargo test --doc