chore(ci): add commitlint for pull_requests

This commit is contained in:
Jeremy Attali 2020-06-23 22:29:47 -04:00 committed by Jeremy Attali
parent 177c2d45fa
commit 24d30d8106
2 changed files with 21 additions and 0 deletions

3
.commitlintrc.yml Normal file
View File

@ -0,0 +1,3 @@
---
extends:
- "@commitlint/config-conventional"

18
.github/workflows/lint.yml vendored Normal file
View File

@ -0,0 +1,18 @@
name: Lint
on: [pull_request]
jobs:
commitlint:
runs-on: ubuntu-20.04
name: "Commit"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v1
with:
configFile: "./.commitlintrc.yml"
firstParent: false
failOnWarnings: true