diff --git a/.gitea/workflows/check-lint.yml b/.gitea/workflows/check-lint.yml index 3118a83..432a3d4 100644 --- a/.gitea/workflows/check-lint.yml +++ b/.gitea/workflows/check-lint.yml @@ -19,6 +19,7 @@ jobs: profile: minimal toolchain: stable override: true + components: rustfmt, clippy - name: Use sparse Cargo index for crates.io run: echo -e '[registries.crates-io]\nprotocol = "sparse"' >> /root/.cargo/config.toml @@ -28,18 +29,18 @@ jobs: with: command: check - - name: Run cargo fmt - uses: https://github.com/actions-rs/cargo@v1 - with: - command: fmt - args: --all -- --check - - name: Run cargo clippy uses: https://github.com/actions-rs/cargo@v1 with: command: clippy args: -- -D warnings + - name: Run cargo fmt + uses: https://github.com/actions-rs/cargo@v1 + with: + command: fmt + args: --all -- --check + # TODO: Add a test suite first! # - name: Run cargo test # uses: https://github.com/actions-rs/cargo@v1