add lint workflow
Some checks failed
/ lint (push) Failing after 24s

This commit is contained in:
Tom Bloor 2024-04-01 19:40:16 +01:00
parent 2c8c77c97b
commit 0e8056c1d2
Signed by: TBSliver
GPG key ID: 4657C7EBE42CC5CC

View file

@ -0,0 +1,14 @@
on: [push]
jobs:
lint:
runs-on: docker
container:
image: rust:1.74
steps:
# no nodejs installed in rust by default
- run: apt update && apt install -y nodejs
- uses: https://code.forgejo.org/actions/checkout@v3
- run: rustup component add rustfmt clippy
- run: cargo fmt --all --check --verbose
- run: cargo clippy --all --check --verbose