ci: add static analysis steps (format+lint+validate yaml)
All checks were successful
/ static_analysis (push) Successful in 59s
All checks were successful
/ static_analysis (push) Successful in 59s
This commit is contained in:
parent
69454b1074
commit
8dfc2b3c5e
1 changed files with 14 additions and 0 deletions
14
.forgejo/workflows/ci.yml
Normal file
14
.forgejo/workflows/ci.yml
Normal 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
|
||||||
|
|
Loading…
Reference in a new issue