From 5614d5d009d22a48c0172c14a0381b1bcdd3dd41 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 | 16 ++++++++++++++++ 1 file changed, 16 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..5022163 --- /dev/null +++ b/.forgejo/workflows/ci.yml @@ -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 +