Skip to content

Commit 3aa8a27

Browse files
committed
ci: 🎡 add commitlint job
1 parent 841e2de commit 3aa8a27

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/ci.yml

+15-1
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,23 @@ jobs:
4040
runs-on: ubuntu-latest
4141
steps:
4242
- uses: actions/checkout@v3
43-
43+
4444
- name: Setup
4545
uses: ./.github/actions/step-setup
4646

4747
- name: Run E2E
4848
run: npm run ci:e2e
49+
50+
commitlint:
51+
runs-on: ubuntu-latest
52+
if: github.event_name == 'pull_request'
53+
steps:
54+
- uses: actions/checkout@v3
55+
with:
56+
fetch-depth: 0
57+
58+
- name: Setup
59+
uses: ./.github/actions/step-setup
60+
61+
- name: Validate PR commits with commitlint
62+
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 commit comments

Comments
 (0)