Migrate to cargo nextest in ci

This commit is contained in:
Filip Tibell 2025-04-28 22:14:44 +02:00
parent 1b8fee043e
commit 17d3cf4504
No known key found for this signature in database

View file

@ -2,15 +2,16 @@ name: CI
on: on:
push: push:
pull_request:
workflow_dispatch: workflow_dispatch:
defaults: defaults:
run: run:
shell: bash shell: bash
jobs: env:
CARGO_TERM_COLOR: always
jobs:
fmt: fmt:
name: Check formatting name: Check formatting
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -79,23 +80,23 @@ jobs:
components: clippy components: clippy
targets: ${{ matrix.cargo-target }} targets: ${{ matrix.cargo-target }}
- name: Install nextest
uses: taiki-e/install-action@v2
- name: Build - name: Build
run: | run: |
cargo build \ cargo build --workspace \
--workspace \
--locked --all-features \ --locked --all-features \
--target ${{ matrix.cargo-target }} --target ${{ matrix.cargo-target }}
- name: Lint - name: Lint
run: | run: |
cargo clippy \ cargo clippy --workspace \
--workspace \
--locked --all-features \ --locked --all-features \
--target ${{ matrix.cargo-target }} --target ${{ matrix.cargo-target }}
- name: Test - name: Test
run: | run: |
cargo test \ cargo nextest run --lib \
--lib --workspace \
--locked --all-features \ --locked --all-features \
--target ${{ matrix.cargo-target }} --target ${{ matrix.cargo-target }}