From 33d67c72b5f413c8a16908b35dcca0eef24bce6c Mon Sep 17 00:00:00 2001 From: Frazer Smith Date: Wed, 10 Feb 2021 13:58:14 +0000 Subject: [PATCH] ci: add commit-lint job --- .github/workflows/ci.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 800a48e7..82f5a776 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,6 +29,18 @@ jobs: - name: Compile TypeScript Definition File run: npm run build + commit-lint: + name: Lint Commit Messages + if: github.event.pull_request.draft == false + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: wagoid/commitlint-github-action@v2.0.3 + with: + configFile: ./package.json + unit-tests: name: Unit Tests if: github.event.pull_request.draft == false @@ -78,7 +90,7 @@ jobs: automerge: name: Automatically Merge Dependabot Pull Requests if: github.event.pull_request.draft == false - needs: [lint, unit-tests] + needs: [commit-lint, lint, unit-tests] runs-on: ubuntu-latest steps: - uses: fastify/github-action-merge-dependabot@v1.1.1