Skip to content

Commit

Permalink
ci: add commitlint in actions
Browse files Browse the repository at this point in the history
  • Loading branch information
r17x committed Sep 20, 2024
1 parent 50bc60a commit cda809f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,14 @@ jobs:
- name: install dependencies
run: yarn install --immutable

- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: yarn commitlint --last --verbose

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: yarn commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

- name: lint
run: yarn lint

Expand Down

0 comments on commit cda809f

Please sign in to comment.