From 8dfc2b3c5e5448b15c88ba669ea29a9741d8ea39 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..d3b75fb --- /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 run ruff-format -a + - name: Validate Yaml + run: pipx run pre-commit run check-yaml -a +