ci: add static analysis steps (format+lint+validate yaml)
All checks were successful
/ static_analysis (push) Successful in 59s

This commit is contained in:
Marc 2024-10-18 22:08:26 -04:00
parent 69454b1074
commit 8dfc2b3c5e
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 run ruff-format -a
- name: Validate Yaml
run: pipx run pre-commit run check-yaml -a