From 8298a71392055e6512f4bd4cc0f5e9931e4f9437 Mon Sep 17 00:00:00 2001 From: Simon Richardson Date: Wed, 3 Jul 2024 09:17:28 +0100 Subject: [PATCH] feat: conventional commits static analysis Use linting to ensure proper commit messages. This will use the default config out of the box, and we can add more if we feel the need. --- .github/workflows/static-analysis.yaml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .github/workflows/static-analysis.yaml diff --git a/.github/workflows/static-analysis.yaml b/.github/workflows/static-analysis.yaml new file mode 100644 index 00000000..b4fb3033 --- /dev/null +++ b/.github/workflows/static-analysis.yaml @@ -0,0 +1,18 @@ +name: "Static Analysis" +on: + push: + branches: [master] + pull_request: + types: [opened, synchronize, reopened, ready_for_review] + +permissions: + contents: read + +jobs: + conventional-commits: + name: Check conventional commits + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: wagoid/commitlint-github-action@v6 +