Skip to content

Merge pull request #213 from estie-inc/v1.1.0 #529

Merge pull request #213 from estie-inc/v1.1.0

Merge pull request #213 from estie-inc/v1.1.0 #529

Workflow file for this run

name: test
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
RUSTFLAGS: -Dwarnings
jobs:
test:
name: Rust ${{ matrix.version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
version: ["1.88", stable]
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
- uses: dtolnay/rust-toolchain@f7ccc83f9ed1e5b9c81d8a67d7ad1a747e22a561 # 2025-12-17
with:
toolchain: ${{ matrix.version }}
components: rustfmt, clippy
- name: Check formatting
run: cargo fmt --all -- --check
- name: Clippy
run: cargo clippy --profile ci --workspace --lib --tests --examples --all-features -- -D warnings
- name: Check default features
run: cargo check --profile ci --workspace --lib --tests --examples
- name: Check all features
run: cargo check --profile ci --workspace --lib --tests --examples --all-features
- name: Check without default features
run: cargo check --profile ci --workspace --lib --tests --examples --no-default-features
- name: Test library
run: cargo test --profile ci --workspace --all-features --lib
- name: Test derive macro
run: cargo test --profile ci --workspace --all-features --test derive_trybuild
- name: Test auto trait contracts
run: cargo test --profile ci --workspace --all-features --test auto_trait_trybuild
- name: Test documentation
run: cargo test --profile ci --workspace --all-features --doc