Skip to content

ci: add rust and nix jobs #1

ci: add rust and nix jobs

ci: add rust and nix jobs #1

Workflow file for this run

name: Rust
on: [push, pull_request]
jobs:
check:
name: Check and test Rust code
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Cache Rust dependencies
uses: Swatinem/rust-cache@v2
- run: cargo check
- run: cargo test
- run: cargo fmt --all -- --check
- run: cargo clippy -- -D warnings