Skip to content

Commit

Permalink
ci: add commit-lint job
Browse files Browse the repository at this point in the history
  • Loading branch information
Frazer Smith committed Feb 10, 2021
1 parent 92a3769 commit 33d67c7
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 33d67c7

Please sign in to comment.