From 0a1ae62b3fd5e7377f1445e0ba4147d5c9600086 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Fri, 18 Oct 2024 22:08:26 -0400 Subject: [PATCH] ci: add static analysis steps (format+lint+validate yaml) --- .forgejo/workflows/ci.yml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 .forgejo/workflows/ci.yml diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml new file mode 100644 index 0000000..5e717ca --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -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 +