build(pre-commit): use pre-commit hooks and configuration as checks

This commit is contained in:
Steve Moyer
2025-07-07 16:13:58 -04:00
parent 03bcfb7b16
commit 77e0cddcfc
2 changed files with 15 additions and 0 deletions

14
.github/workflows/pre-commit.yaml vendored Normal file
View File

@@ -0,0 +1,14 @@
name: pre-commit
on:
pull_request:
push:
# branches: [main]
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: asdf-vm/actions/install@v4
- uses: pre-commit/action@v3.0.1

View File

@@ -1,3 +1,4 @@
act 0.2.79
golang 1.24.4
golangci-lint 2.2.1
pre-commit 4.0.1