Release as 0.2.5 instead of 0.3 #356
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: Checks | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
# `cargo hack --each-feature` runs the given command for each feature, including "no features", "all features", | |
# and the `default` feature. | |
test: | |
name: Tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- uses: taiki-e/install-action@nextest | |
- name: Test | |
run: cargo hack nextest run --no-fail-fast --each-feature --workspace | |
doc_test: | |
name: Doc tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: Doc test | |
run: cargo hack test --doc --no-fail-fast --each-feature --workspace | |
check: | |
name: Check | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: Check | |
run: cargo hack check --each-feature --no-dev-deps --workspace | |
clippy: | |
name: Clippy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- name: Clippy | |
run: cargo hack clippy --workspace --all-targets --each-feature -- -D warnings | |
# https://doc.rust-lang.org/cargo/guide/continuous-integration.html#verifying-rust-version | |
msrv: | |
name: Check MSRV | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- uses: taiki-e/install-action@cargo-hack | |
- run: cargo hack check --rust-version --workspace --all-targets --ignore-private | |
check_formatting: | |
name: Formatting | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Formatting | |
run: cargo fmt --all --check | |
check_docs: | |
name: Docs | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Docs | |
env: | |
RUSTDOCFLAGS: "-D rustdoc::all -A rustdoc::private_intra_doc_links" | |
run: cargo doc --all-features | |
check_semver: | |
name: Semver | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Check semver | |
uses: obi1kenobi/cargo-semver-checks-action@v2 |