-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Calling bash-unit pre-commit hook in ci + sample setup
- Loading branch information
Showing
2 changed files
with
15 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,14 @@ jobs: | |
run: | | ||
set -o pipefail | ||
pre-commit gc | ||
# Run default pre-commit hooks | ||
pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG} | ||
# Run manual pre-commit hook that runs bash_unit@rev | ||
# defined in .pre-commit-config.yaml | ||
pre-commit run bash-unit --hook-stage manual -a | tee -a ${RAW_LOG} | ||
# Run this version of bash_unit using it's current pre-commit-hook.yaml config | ||
# Useful for testing that the current version works | ||
pre-commit try-repo . --verbose --all-files | tee -a ${RAW_LOG} | ||
- name: Convert Raw Log to annotations | ||
uses: mdeweerd/[email protected] | ||
if: ${{ failure() }} | ||
|
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