build(pre-commit): use pre-commit hooks and configuration as checks
This commit is contained in:
14
.github/workflows/pre-commit.yaml
vendored
Normal file
14
.github/workflows/pre-commit.yaml
vendored
Normal 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
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
act 0.2.79
|
||||||
golang 1.24.4
|
golang 1.24.4
|
||||||
golangci-lint 2.2.1
|
golangci-lint 2.2.1
|
||||||
pre-commit 4.0.1
|
pre-commit 4.0.1
|
||||||
|
|||||||
Reference in New Issue
Block a user