Skip to content

chore: setup tooling #1

chore: setup tooling

chore: setup tooling #1

Workflow file for this run

name: Rust
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build_and_test:
runs-on: ubuntu-latest
env:
CARGO_TERM_COLOR: always
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Install Rust nightly
run: rustup toolchain install
- name: Dependency caching
uses: Swatinem/rust-cache@v2
with:
workspaces: crates
- name: Run tests
run: "cargo test --all --verbose"
- name: Run clippy
run: "cargo clippy --all -- -D warnings"
- name: Check formatting
run: "cargo fmt --all -- --check"