Files
war-in-tunnels/.gitea/workflows/rust.yml
T
GarandPLG dfe46cab96
Rust checks / check (push) Failing after 1m7s
Add CI workflow and enforce Rust 1.88 linting
2026-10-19 12:33:06 +02:00

25 lines
812 B
YAML

name: Rust checks
on:
push:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Install Nix
uses: https://github.com/cachix/install-nix-action@v31
- name: Formatting
run: nix develop --no-update-lock-file -c cargo fmt --all -- --check
- name: Compilation
run: nix develop --no-update-lock-file -c cargo check --all-targets --locked
- name: Tests
run: nix develop --no-update-lock-file -c cargo test --all-targets --locked
- name: Release tests
run: nix develop --no-update-lock-file -c cargo test --all-targets --release --locked
- name: Clippy
run: nix develop --no-update-lock-file -c cargo clippy --all-targets --locked