Skip to content

Commit

Permalink
ci: add commitlint job in LintingGitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
liviomendonca authored Sep 24, 2024
1 parent 4b0907d commit daa3cc8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/linting.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,18 @@ jobs:

- run: npm ci
- run: npm run lint:eslint:check

commitlint:
name: commitlint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- uses: actions/setup-node@v4
with:
node-version: "lts/hydrogen"

- run: npm ci
- 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 daa3cc8

Please sign in to comment.