Skip to content

Commit 843b3fb

Browse files
committed
workflows: open-code pre-commit check
The pre-commit action is in maintenance mode, and is easily replicated. Signed-off-by: Benjamin Gilbert <[email protected]>
1 parent 82036cb commit 843b3fb

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/java.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ jobs:
2121
uses: actions/setup-python@v6
2222
with:
2323
python-version: '3.13'
24+
- name: Install dependencies
25+
run: python -m pip install pre-commit
26+
- name: Cache pre-commit environments
27+
uses: actions/cache@v4
28+
with:
29+
path: ~/.cache/pre-commit
30+
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
2431
- name: Run pre-commit hooks
25-
uses: pre-commit/[email protected]
32+
run: pre-commit run -a --show-diff-on-failure --color=always
2633

2734
build:
2835
name: Build

0 commit comments

Comments
 (0)