Merge pull request #5772 from bcgov/renovate/eslint-plugin-n-17.x-loc… #5787
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 32.Run pre-commit | |
on: push | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6 | |
- uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f | |
- name: Setup Tools | |
uses: ./.github/actions/setup-tools | |
- name: Setup NPM Packages | |
uses: ./.github/actions/setup-npm | |
- name: Rerun Pre-Commit Hooks on CI | |
run: pre-commit run --config=.pre-commit-config.yaml --color=always --show-diff-on-failure --all-files | |
- name: Lint Current Commits | |
if: github.event_name == 'push' | |
run: npx commitlint --last --verbose | |
- name: Lint PR Commits | |
if: github.event_name == 'pull_request' | |
run: npx commitlint --from ${{ github.event.pull_request.head.sha}}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose |