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