Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
parent
fc4783ec1c
commit
d5f1810fe7
2 changed files with 27 additions and 0 deletions
19
.forgejo/workflows/pre-commit.yaml
Normal file
19
.forgejo/workflows/pre-commit.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
on:
|
||||
- push
|
||||
jobs:
|
||||
test:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: '3.12'
|
||||
cache: pip
|
||||
- run: python -m pip install pre-commit
|
||||
|
||||
- uses: actions/setup-go@v5
|
||||
with:
|
||||
go-version: '1.24.6'
|
||||
|
||||
- run: pre-commit run --all-files
|
8
.pre-commit-config.yaml
Normal file
8
.pre-commit-config.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
repos:
|
||||
- repo: https://github.com/tekwizely/pre-commit-golang
|
||||
rev: v1.0.0-rc.2
|
||||
hooks:
|
||||
- id: go-fmt
|
||||
- id: go-build-mod
|
||||
- id: go-test-mod
|
Loading…
Add table
Add a link
Reference in a new issue