feat: github workflow

This commit is contained in:
2025-03-09 15:44:12 +07:00
parent 34dec857da
commit ad201e5503

28
.github/workflows/build.yaml vendored Normal file
View File

@@ -0,0 +1,28 @@
name: Go Build
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.22.12'
- name: Install dependencies
run: go mod tidy
- name: Build
run: go build -v ./...