CI: Split the pipeline into build and lint

This commit is contained in:
Sameer Rahmani 2023-02-04 00:31:41 +00:00
parent d3dc844e9a
commit 7f280e463c
Signed by: lxsameer
GPG Key ID: B0A4AF28AB9FD90B
2 changed files with 7 additions and 1 deletions

View File

@ -2,7 +2,6 @@ pipeline:
Prepare:
image: beta.devheroes.codes/serene/ci:6
commands:
- ./builder setup
- ./builder deps pull toolchain
- ./builder deps pull bdwgc
volumes:

7
.woodpecker/lint.yml Normal file
View File

@ -0,0 +1,7 @@
pipeline:
Linters:
image: beta.devheroes.codes/serene/ci:6
commands:
- ./builder setup
- export FILES="$(git diff --name-only HEAD HEAD~1)"
- pre-commit --files "$FILES"