Skip to content

Commit

Permalink
Merge pull request #9 from auth0-lab/lint_prs
Browse files Browse the repository at this point in the history
ci: lint pull-requests
  • Loading branch information
jfromaniello authored Aug 5, 2024
2 parents e83a586 + 45737ed commit bb72d9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: CI
on: [pull_request]

jobs:
release:
ci:
runs-on: ubuntu-latest
permissions:
pull-requests: write # to be able to comment on released pull requests
Expand All @@ -21,9 +21,12 @@ jobs:
- name: Install dependencies
run: npm clean-install

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

- name: Run Tests
- name: Lint
run: npm run lint

- name: Test
run: npm test

0 comments on commit bb72d9d

Please sign in to comment.