ci: add static analysis steps (format+lint+validate yaml)
Some checks failed
/ static_analysis (push) Failing after 1m30s
Some checks failed
/ static_analysis (push) Failing after 1m30s
This commit is contained in:
parent
69454b1074
commit
5614d5d009
1 changed files with 16 additions and 0 deletions
16
.forgejo/workflows/ci.yml
Normal file
16
.forgejo/workflows/ci.yml
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
static_analysis:
|
||||||
|
runs-on: runner-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@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
|
||||||
|
|
Loading…
Reference in a new issue