added go test workflow

This commit is contained in:
Frank Mayer 2024-12-19 00:19:09 +01:00
parent 17946611f2
commit 08f8574dad
Signed by: tsukinoko-kun
GPG Key ID: 427B3E61E69C2E51

27
.github/workflows/go_test.yaml vendored Normal file
View File

@ -0,0 +1,27 @@
---
name: Go Test
on:
push:
branches:
- main
pull_request:
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: Build
run: go build -v ./...
- name: Test
run: go test -v ./...