Skip to content

git pchore(release): cano + cano-macros 0.10.0 #139

git pchore(release): cano + cano-macros 0.10.0

git pchore(release): cano + cano-macros 0.10.0 #139

Workflow file for this run

name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
permissions:
contents: read
jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: 1.95.0
components: rustfmt, clippy
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: ~/.cargo/registry
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo index
uses: actions/cache@v4
with:
path: ~/.cargo/git
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
- name: Cache cargo build
uses: actions/cache@v4
with:
path: target
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Check formatting
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --all-targets --all-features -- -D warnings
- name: Build (default features)
run: cargo build
- name: Build (all features)
run: cargo build --all-features
- name: Check benchmarks
run: cargo check --benches --all-features
- name: Check examples (default features)
run: cargo check --examples
- name: Check examples (all features)
# Examples gated behind `required-features` (e.g. scheduler_*) only get
# a build check when their feature is enabled.
run: cargo check --examples --all-features
- name: Run tests (default features)
run: cargo test --lib
- name: Run tests (all features)
# Required to run `tracing_tests` which is `#[cfg(feature = "tracing")]`,
# plus full scheduler coverage.
run: cargo test --lib --all-features
- name: Run doctests
run: cargo test --doc --all-features
security_audit:
name: Security Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
uses: taiki-e/install-action@cargo-audit
- name: Run security audit
run: cargo audit