Skip to content

format

format #252

Workflow file for this run

name: "Backend: CI"
on:
push:
branches: [ "main" ]
paths:
- 'rustytime/**'
- '.github/workflows/ci.yml'
pull_request:
branches: [ "main" ]
paths:
- 'rustytime/**'
- '.github/workflows/ci.yml'
env:
CARGO_TERM_COLOR: always
jobs:
rust-checks:
runs-on: ubuntu-latest
permissions:
actions: write
contents: read
defaults:
run:
working-directory: rustytime
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.90"
components: rustfmt, clippy
- name: Cache cargo artifacts
uses: Swatinem/rust-cache@v2
with:
workspaces: rustytime -> target
shared-key: ci
- name: Cargo formatting check
run: cargo fmt --all -- --check
- name: Cargo clippy check
run: cargo clippy --all-targets --all-features
- name: Run tests
run: cargo test --locked --all-targets --all-features
- name: Cargo check
run: cargo check --all-targets --all-features