test: Add Forgejo actions
Some checks failed
/ test (push) Failing after 4m39s

Signed-off-by: Julien Riou <julien@riou.xyz>
This commit is contained in:
Julien Riou 2025-08-25 07:10:18 +02:00
parent fc4783ec1c
commit f203d26042
Signed by: jriou
GPG key ID: 9A099EDA51316854
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,18 @@
on:
- push
jobs:
test:
runs-on: docker
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.12.11
- run: 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
View 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