chore: check commit messages with committed #55
Workflow file for this run
This file contains 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: Main push and PR checks | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- uses: jdx/mise-action@5bb8f8c1911837cf42064e6490e7634fc842ee7e # v2.1.8 | |
- name: Check PR commit messages | |
env: | |
FORCE_COLOR: true | |
LEFTHOOK_QUIET: meta,execution | |
run: lefthook run commit-msgs-on-pr-branch --no-tty | |
if: ${{ github.event_name == 'pull_request' }} | |
- name: Check code | |
env: | |
FORCE_COLOR: true | |
LEFTHOOK_QUIET: meta,execution | |
run: lefthook run pre-commit --all-files --force --no-tty |