ci: use faster cargo-nextest to run tests

This commit is contained in:
Boshen 2023-03-26 13:49:40 +08:00
parent 95a2382860
commit d4af69930c
No known key found for this signature in database
GPG key ID: 9C7A8C8AB22BEBD1

View file

@ -30,7 +30,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
- name: Install Toolchain
run: rustup show
- name: Run rustfmt
@ -43,7 +43,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
- name: Install Toolchain
run: rustup show
- name: Cache
@ -73,7 +73,7 @@ jobs:
- name: Checkout PR Branch
uses: actions/checkout@v3
- name: Install toolchain
- name: Install Toolchain
run: rustup show
- name: Install cargo-udeps
@ -98,16 +98,21 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Install toolchain
- name: Install Toolchain
run: rustup show
- name: Install cargo-nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Cache
uses: Swatinem/rust-cache@v2
with:
shared-key: check
- name: Run tests on ${{ matrix.os }}
run: cargo test --workspace
run: cargo nextest run
documentation:
if: github.ref == 'refs/heads/main'