chore: force to run checkPhase (not triggered by default) #124
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: Pre-Commit | |
on: | |
push: | |
pull_request: | |
branches: [ main ] | |
jobs: | |
Run-Hooks: | |
runs-on: macos-12 | |
steps: | |
- name: Install preliminaries | |
run: | | |
brew install pre-commit jsonlint yamllint shellcheck | |
vagrant plugin install vagrant-disksize | |
shell: bash | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- id: file-changes | |
uses: trilom/[email protected] | |
with: | |
output: ' ' | |
- name: Run pre-commit | |
run: | | |
pre-commit run --show-diff-on-failure\ | |
--color=always\ | |
--files ${{ steps.file-changes.outputs.files }} | |
shell: bash | |
- name: Show pre-commit logs | |
if: failure() | |
run: cat ~/.cache/pre-commit/pre-commit.log | |
shell: bash | |
- name: Show pre-commit version | |
run: pre-commit --version | |
shell: bash |