From 64ad19fc5a39aba5a6f5357168a1f8c76ad62697 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 | 17 +++++++++++++++++ 1 file changed, 17 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..140346c --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -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 +