From 0e8056c1d22cf5823fe47a3304b3b921053405c5 Mon Sep 17 00:00:00 2001 From: Tom Bloor Date: Mon, 1 Apr 2024 19:40:16 +0100 Subject: [PATCH] add lint workflow --- .forgejo/workflows/lint.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .forgejo/workflows/lint.yml diff --git a/.forgejo/workflows/lint.yml b/.forgejo/workflows/lint.yml new file mode 100644 index 0000000..10b272d --- /dev/null +++ b/.forgejo/workflows/lint.yml @@ -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