Skip to content

Commit bc57543

Browse files
committed
Add GitHub Action for prek
This is a copy of the [GitHub Action] included in prek's installation instructions. While GitLab is the primary host for this repository, Dependabot and pre-commit.ci send pull requests to GitHub. pre-commit.ci submitted #21 to update the StyLua pre-commit hook but the pre-commit.ci check failed because it's using a version of Rust that is no longer supported by one of the hooks. While running the checks through GitHub Actions will mostly be redundant, it will give me the confidence to merge a pull request if there is a problem with pre-commit.ci. [GitHub Action]: https://prek.j178.dev/installation/#use-in-github-actions
1 parent f7490a5 commit bc57543

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
name: Prek checks
3+
on: [push, pull_request]
4+
5+
jobs:
6+
prek:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v5
10+
- uses: j178/prek-action@v1

0 commit comments

Comments
 (0)