mirror of
https://old.git.ood.ovh/nehu/tokio-messaging.git
synced 2025-04-28 22:27:04 +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
|
- 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
|
||||||
|
|
Loading…
Add table
Reference in a new issue