Files
honey-biscuit-workshop/.github/workflows/ci.yml
T
Catty Steve 36112c671d
CI / Check & Lint (push) Failing after 23m46s
style: apply rustfmt and clippy fixes across codebase
2026-04-23 18:34:26 +08:00

57 lines
1.2 KiB
YAML

name: CI
on:
push:
branches: [ master, main ]
paths:
- 'workshop-baker/**'
- '.github/workflows/ci.yml'
pull_request:
branches: [ master, main ]
paths:
- 'workshop-baker/**'
- '.github/workflows/ci.yml'
env:
CARGO_TERM_COLOR: always
jobs:
check-and-lint:
name: Check & Lint
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./workshop-baker
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Cache cargo dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Check formatting
run: cargo fmt -- --check
- name: Check code (cargo check)
run: cargo check --all-features
- name: Run Clippy lints
run: cargo clippy --all-features -- -D warnings
- name: Run tests
run: cargo test --all-features