chore(ci): setup nextest (#1848)

This commit is contained in:
Ellie Huxtable 2024-03-10 19:07:23 +00:00 committed by GitHub
parent ba0fe21795
commit c97f2375ad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -95,6 +95,12 @@ jobs:
with: with:
toolchain: stable toolchain: stable
- uses: taiki-e/install-action@v2
name: Install nextest
with:
tool: cargo-nextest
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: | path: |
@ -104,7 +110,7 @@ jobs:
key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test - name: Run cargo test
run: cargo test --lib --bins run: cargo nextest run --lib --bins
check: check:
strategy: strategy:
@ -164,6 +170,12 @@ jobs:
with: with:
toolchain: stable toolchain: stable
- uses: taiki-e/install-action@v2
name: Install nextest
with:
tool: cargo-nextest
- uses: actions/cache@v3 - uses: actions/cache@v3
with: with:
path: | path: |
@ -173,7 +185,7 @@ jobs:
key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }} key: ${ runner.os }-cargo-debug-${{ hashFiles('**/Cargo.lock') }}
- name: Run cargo test - name: Run cargo test
run: cargo test --test '*' run: cargo nextest run --test '*'
env: env:
ATUIN_DB_URI: postgres://atuin:pass@localhost:5432/atuin ATUIN_DB_URI: postgres://atuin:pass@localhost:5432/atuin