Update dependency rust-version to v1.84 #32
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: CI | |
on: | |
pull_request: | |
merge_group: | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
name: Tests | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: ["stable", "stable 6 months ago"] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- name: Build tests | |
run: cargo test --workspace --no-run | |
- name: Run tests | |
run: cargo test --workspace | |
style: | |
name: Style | |
runs-on: ubuntu-latest | |
env: | |
RUSTFLAGS: -Dwarnings | |
RUSTDOCFLAGS: -Dwarnings | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Rust toolchain | |
uses: dtolnay/rust-toolchain@nightly | |
with: | |
components: rustfmt, clippy | |
- name: Install cargo-docs-rs | |
uses: dtolnay/install@cargo-docs-rs | |
- name: Check docs | |
run: cargo docs-rs | |
- name: Check lints | |
run: cargo clippy | |
- name: Check fmt | |
run: cargo fmt -- --check | |
semver: | |
name: API | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Semver checks | |
uses: obi1kenobi/cargo-semver-checks-action@v2 | |
with: | |
package: build-rs |