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

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

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

@ -0,0 +1,17 @@
on: [push, pull_request]
jobs:
static_analysis:
runs-on: runner-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
- name: Linting & formatting check
uses: pre-commit/action@v3.0.1
with:
extra_args: ruff ruff-format --all-files
- name: Validate Yaml
uses: pre-commit/action@v3.0.1
with:
extra_args: check-yaml --all-files