ci: add static analysis steps (format+lint+validate yaml)
Some checks failed
/ static_analysis (push) Failing after 56s
Some checks failed
/ static_analysis (push) Failing after 56s
This commit is contained in:
parent
69454b1074
commit
0a1ae62b3f
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 ruff-format -a
|
||||||
|
- name: Validate Yaml
|
||||||
|
run: pipx run pre-commit check-yaml -a
|
||||||
|
|
Loading…
Reference in a new issue