ci(rust): create a rust lint&test workflow

This commit is contained in:
aria 2025-07-11 22:13:26 +10:00
parent 5b4bc6bda1
commit 52b8c5f88f
Signed by: aria
SSH key fingerprint: SHA256:WqtcVnDMrv1lnUlNah5k31iywFUI/DV+5yHzCTO4Vds

View file

@ -0,0 +1,16 @@
on: [push]
jobs:
lint-n-test:
# Run on the 9950x that Aria has access to :3
runs-on: azuki-new
container:
image: rust
steps:
# nodejs is required for the checkout action
- run: curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs
- uses: actions/checkout@v4
- run: rustup component add rustfmt clippy
- run: cargo fmt -- --check
- run: cargo clippy -- -D warnings
- run: cargo check
- run: cargo test