Skip to content

build(deps): update rstest requirement from 0.19 to 0.22 #417

build(deps): update rstest requirement from 0.19 to 0.22

build(deps): update rstest requirement from 0.19 to 0.22 #417

Workflow file for this run

name: Tests
on:
push:
branches: [main]
paths:
- ".github/workflows/test.yml"
- "**.rs"
- "Cargo.toml"
- "Cargo.lock"
pull_request:
branches: [main]
paths:
- ".github/workflows/test.yml"
- "**.rs"
- "Cargo.toml"
- "Cargo.lock"
jobs:
test:
name: Test target ${{ matrix.target }} on ${{ matrix.os }} for ${{ matrix.toolchain }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- x86_64-pc-windows-msvc
- x86_64-apple-darwin
- wasm32-wasi
toolchain: [stable, nightly, "1.74"]
include:
- target: x86_64-unknown-linux-gnu
os: ubuntu-latest
minimal_setup: false
- target: wasm32-wasi
os: ubuntu-latest
minimal_setup: true
- target: x86_64-pc-windows-msvc
os: windows-latest
minimal_setup: false
- target: x86_64-apple-darwin
os: macos-latest
minimal_setup: false
# minimal_setup: This is needed for targets that don't support our dev dependencies.
# It also excludes the default features, i.e. [tty].
# For instance, "wasm32-wasi" is such a target.
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust toolchain
uses: dtolnay/rust-toolchain@master
with:
targets: ${{ matrix.target }}
toolchain: ${{ matrix.toolchain }}
components: rustfmt, clippy
- name: cargo build
run: cargo build --target=${{ matrix.target }}
if: ${{ !matrix.minimal_setup }}
- name: cargo test
run: cargo test --target=${{ matrix.target }} --features=integration_test
if: ${{ !matrix.minimal_setup }}
- name: cargo test without default features
run: cargo test --target=${{ matrix.target }} --tests --no-default-features
if: ${{ !matrix.minimal_setup }}
- name: cargo test with crossterm re-export
run: cargo test --target=${{ matrix.target }} --features=integration_test,reexport_crossterm
if: ${{ !matrix.minimal_setup }}
- name: cargo test with custom_styling
run: cargo test --target=${{ matrix.target }} --features=integration_test,custom_styling
if: ${{ !matrix.minimal_setup }}
- name: cargo build without default features and without dev dependencies
run: cargo build --release --target=${{ matrix.target }} --no-default-features
if: ${{ matrix.minimal_setup }}