Skip to content

Test bincode feature in CI #481

Test bincode feature in CI

Test bincode feature in CI #481

Workflow file for this run

name: "Test Suite"
on:
push:
branches:
- master
pull_request:
jobs:
test:
strategy:
matrix:
os:
- ubuntu
- macos
- windows
toolchain:
- stable
- 1.72
features:
- default
- bincode
name: cargo test on ${{ matrix.os }}, rust $${ matrix.toolchain }}, features ${{ features }}

Check failure on line 22 in .github/workflows/test.yml

View workflow run for this annotation

GitHub Actions / Test Suite

Invalid workflow file

The workflow is not valid. .github/workflows/test.yml (Line: 22, Col: 11): Unrecognized named-value: 'features'. Located at position 1 within expression: features .github/workflows/test.yml (Line: 30, Col: 14): Unrecognized named-value: 'features'. Located at position 1 within expression: features
runs-on: ${{ matrix.os }}-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
- name: Cargo test
run: cargo test --features ${{ features }}
# Check mdbook
mdbook:
name: test mdBook
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rust-lang/setup-rust-toolchain@v1
# rustdoc doesn't build dependencies, so it needs to run after `cargo build`,
# but its dependency search gets confused if there are multiple copies of any
# dependency in target/debug/deps, so it needs to run before `cargo test` et al.
# clutter target/debug/deps with multiple copies of things.
- run: cargo clean
- run: cargo build
- name: test mdBook
run: for file in $(find mdbook -name '*.md' | sort); do rustdoc --test $file -L ./target/debug/deps; done