Skip to content

ci: Ensure there are no clippy warnings and that the code is formatted #13

ci: Ensure there are no clippy warnings and that the code is formatted

ci: Ensure there are no clippy warnings and that the code is formatted #13

Workflow file for this run

name: CI
on:
pull_request:
push:
jobs:
ci:
runs-on: ubuntu-22.04
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@main
- uses: DeterminateSystems/nix-installer-action@main
- uses: DeterminateSystems/magic-nix-cache-action@main
- name: Run `cargo check`
run: nix develop --command cargo check
- name: Run `cargo clippy`
run: nix develop --command cargo clippy --all-targets -- -D warnings
- name: Run `cargo fmt`
run: nix develop --command cargo fmt --fmt