Skip to content

Commit 6c047b3

Browse files
committed
chore(github): add commitlint to github actions
1 parent 664e9af commit 6c047b3

3 files changed

Lines changed: 858 additions & 87 deletions

File tree

.github/workflows/pr-checks.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: PR Checks
2+
on: pull_request
3+
4+
jobs:
5+
pr-checks:
6+
runs-on: ubuntu-20.04
7+
name: Check and lint PR
8+
steps:
9+
- uses: actions/checkout@v2
10+
with:
11+
fetch-depth: 0
12+
- name: Setup node
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: 16
16+
- run: npm ci
17+
- name: Lint commits
18+
run: npx commitlint --from=${{ github.event.pull_request.base.sha }}

0 commit comments

Comments
 (0)