From a3131b39b3d73b23a19d791cb8fb3ad2e72b3c5a Mon Sep 17 00:00:00 2001 From: Chewing_Bever Date: Mon, 31 Jul 2023 18:21:34 +0200 Subject: [PATCH] feat(ci): add lint stage --- .woodpecker/lint.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 .woodpecker/lint.yml diff --git a/.woodpecker/lint.yml b/.woodpecker/lint.yml new file mode 100644 index 0000000..82cca61 --- /dev/null +++ b/.woodpecker/lint.yml @@ -0,0 +1,13 @@ +platform: 'linux/amd64' + +branches: + exclude: [main] + +pipeline: + lint: + image: 'rust:1.70-alpine3.18' + commands: + - rustup component add rustfmt + - cargo fmt -- --check + when: + event: [push]