Bump serde from 1.0.202 to 1.0.203 #166
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
CARGO_TERM_COLOR: always | |
RUST_BACKTRACE: 1 | |
RUSTFLAGS: "-D warnings" | |
MINIMUM_SUPPORTED_RUST_VERSION: 1.65.0 | |
jobs: | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo check | |
run: cargo check --all-features --locked --release --all | |
build: | |
name: Build | |
needs: check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
rust: | |
- stable | |
- beta | |
- nightly | |
- 1.65.0 | |
features: | |
- '' | |
include: | |
- rust: stable | |
features: '--all-features' | |
- rust: stable | |
features: '--no-default-features' | |
- rust: stable | |
features: '--features "display"' | |
- rust: stable | |
features: '--features "hash"' | |
- rust: stable | |
features: '--features "serialize"' | |
- rust: stable | |
features: '--features "deserialize"' | |
- rust: nightly | |
features: '--all-features' | |
- rust: nightly | |
features: '--no-default-features' | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: ${{ matrix.rust }} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo build | |
run: cargo build ${{ matrix.features }} | |
clippy: | |
needs: check | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo clippy | |
run: cargo clippy --all-targets --all-features -- --deny warnings | |
fmt: | |
needs: check | |
name: Fmt | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Run cargo fmt | |
run: cargo fmt --all -- --check | |
code-coverage: | |
needs: check | |
name: Unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install cargo-tarpaulin | |
run: cargo install cargo-tarpaulin | |
- name: Run cargo tarpaulin | |
run: cargo tarpaulin --all-features --out Xml | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v4 | |
env: | |
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
doc: | |
needs: check | |
name: Documentation | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: dtolnay/rust-toolchain@master | |
with: | |
toolchain: stable | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build documentation | |
run: cargo doc --no-deps --document-private-items --verbose |