chore: fix minor typos #1687
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: Rust CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- "main" | |
jobs: | |
lint: | |
name: Linting & Coding Standards | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
run: | | |
rustup update | |
rustup component add clippy | |
- uses: Swatinem/rust-cache@v2 | |
- name: Lint | |
run: | | |
cargo fmt -- --check | |
cargo clippy --all-targets --workspace --tests | |
dependencies: | |
name: Check Dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: Swatinem/rust-cache@v2 | |
- name: Install Rust Toolchain | |
run: | | |
rustup update | |
rustup install nightly | |
cargo install cargo-udeps | |
- name: Check for unused dependencies | |
run: | | |
cargo +nightly udeps | |
test: | |
name: Test Suite Runs - ${{ matrix.test-arm }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- # test with the current stable version | |
test-arm: "Stable" | |
rust-version: "stable" | |
continue-on-error: false | |
- # test with the MSRV version | |
test-arm: "Minimum Supported Rust Version" | |
rust-version: "1.70.0" | |
continue-on-error: false | |
- # test with the current nightly version (allowed to fail) | |
test-arm: "Nightly" | |
rust-version: "nightly" | |
continue-on-error: true | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install Rust Toolchain | |
run: | | |
rustup update | |
rustup install ${{ matrix.rust-version }} | |
- uses: Swatinem/rust-cache@v2 | |
- name: Build | |
run: cargo +${{ matrix.rust-version }} build --verbose | |
continue-on-error: ${{ matrix.continue-on-error }} | |
- name: Execute tests | |
run: cargo +${{ matrix.rust-version }} test --verbose | |
continue-on-error: ${{ matrix.continue-on-error }} | |
- name: Run CLI | |
run: cargo +${{ matrix.rust-version }} run -- cyclonedx |