Initial commit

This commit is contained in:
2025-11-04 15:40:02 +01:00
commit 3658b090e0
42 changed files with 5429 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
name: Test Go
on:
pull_request:
types: [opened, synchronize, reopened]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.21'
- name: Run tests
run: go test -v ./...
- name: Run vet
run: go vet ./...
- name: Run fmt check
run: |
if [ -n "$(gofmt -l .)" ]; then
echo "Go code is not formatted:"
gofmt -d .
exit 1
fi