test: Add Forgejo actions
Some checks failed
/ test (push) Has been cancelled

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 d5f1810fe7
Signed by: jriou
GPG key ID: 9A099EDA51316854
2 changed files with 27 additions and 0 deletions

View 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
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