feat: add GH workflow and example test

This commit is contained in:
2025-05-13 14:00:28 +02:00
parent 35c72b1e39
commit fbc42aca31
5 changed files with 63 additions and 1 deletions

22
.github/workflows/main.yaml vendored Normal file
View File

@@ -0,0 +1,22 @@
name: main
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Run build
run: go build -v ./...
- name: Run tests
run: go test -v ./...