From 9710c8024c7a45ab0c44acc4e8b0853f1e9d67a8 Mon Sep 17 00:00:00 2001 From: Simon Richardson Date: Wed, 3 Jul 2024 09:21:55 +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 | 17 +++++++++++++++++ 1 file changed, 17 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..aab25972 --- /dev/null +++ b/.github/workflows/static-analysis.yaml @@ -0,0 +1,17 @@ +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