ci: add static analysis steps (format+lint+validate yaml)
Some checks failed
/ static_analysis (push) Failing after 56s

This commit is contained in:
Marc 2024-10-18 22:08:26 -04:00
parent 69454b1074
commit 0a1ae62b3f
Signed by: marc
GPG key ID: 048E042F22B5DC79

14
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,14 @@
on: [push, pull_request]
jobs:
static_analysis:
runs-on: runner-latest
steps:
- uses: actions/checkout@v4
- name: Linting
run: pipx run pre-commit run ruff -a
- name: Format
run: pipx run pre-commit ruff-format -a
- name: Validate Yaml
run: pipx run pre-commit check-yaml -a