Create Go CI workflow in GitHub Actions

Add GitHub Actions workflow for Go project build and test
This commit is contained in:
admin-else
2026-05-03 15:29:52 +02:00
committed by GitHub
parent 66f32b4cd2
commit b34f8d68ff
+28
View File
@@ -0,0 +1,28 @@
# This workflow will build a golang project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-go
name: Go
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
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 ./...