mirror of
https://old.git.ood.ovh/nehu/tokio-messaging.git
synced 2025-04-28 18:30:03 +02:00
Use nextest
This commit is contained in:
parent
7390946e9e
commit
0391fd1bf4
2 changed files with 32 additions and 20 deletions
3
.config/nextest.toml
Normal file
3
.config/nextest.toml
Normal file
|
@ -0,0 +1,3 @@
|
|||
[profile.ci]
|
||||
# Don't fail fast in CI to run the full test suite.
|
||||
fail-fast = false
|
49
.github/workflows/rust.yml
vendored
49
.github/workflows/rust.yml
vendored
|
@ -27,7 +27,25 @@ jobs:
|
|||
- uses: actions/checkout@v3
|
||||
- name: 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
|
||||
needs: check
|
||||
steps:
|
||||
|
@ -41,24 +59,15 @@ jobs:
|
|||
~/.cargo/git/db/
|
||||
~/cargo-target/
|
||||
key: "rust-build"
|
||||
# TODO: not needed for now
|
||||
# - uses: actions/checkout@v3
|
||||
# - 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"
|
||||
- name: Install nextest
|
||||
uses: taiki-e/install-action@nextest
|
||||
- uses: actions/checkout@v3
|
||||
# - name: Run unit tests
|
||||
# run: cargo nextest run
|
||||
- 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
|
||||
|
|
Loading…
Add table
Reference in a new issue