Skip to content

Commit

Permalink
ci: 🎡 add commitlint job
Browse files Browse the repository at this point in the history
  • Loading branch information
shaharkazaz committed Sep 19, 2023
1 parent 841e2de commit 3aa8a27
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,23 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup
uses: ./.github/actions/step-setup

- name: Run E2E
run: npm run ci:e2e

commitlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Setup
uses: ./.github/actions/step-setup

- name: Validate PR commits with commitlint
run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose

0 comments on commit 3aa8a27

Please sign in to comment.