From ca7e4977135664637d240579272c8501131854e0 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Thu, 7 Nov 2024 22:27:13 -0500 Subject: [PATCH] ci: run pre-commit hooks on push --- .forgejo/workflows/push.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .forgejo/workflows/push.yml diff --git a/.forgejo/workflows/push.yml b/.forgejo/workflows/push.yml new file mode 100644 index 0000000..51734b8 --- /dev/null +++ b/.forgejo/workflows/push.yml @@ -0,0 +1,12 @@ +name: Push +on: [push] + +jobs: + static-analysis: + runs-on: runner-latest + steps: + - uses: actions/checkout@v4 + - name: Validate Yaml + run: pipx run pre-commit run check-yaml -a + - name: Validate shell scripts + run: pipx run pre-commit run shellcheck -a