Skip to content

Commit 9e2cbda

Browse files
committed
Add prek install-hooks step to CI workflow
- Run 'prek install-hooks' before running hooks in CI - This creates environments for all hooks defined in prek.toml - Should fix the prek job failure in GitHub Actions
1 parent 7dc72fb commit 9e2cbda

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,8 @@ jobs:
4747
- name: Install prek
4848
run: curl -sSL https://github.com/j178/prek/releases/download/v0.4.4/prek-x86_64-unknown-linux-gnu -o prek && chmod +x prek && sudo mv prek /usr/local/bin/
4949

50+
- name: Install prek hooks
51+
run: prek install-hooks
52+
5053
- name: Run prek hooks
5154
run: prek run --all-files

0 commit comments

Comments
 (0)