ci: add Gitea Actions workflow for unit tests #2

Merged
gary merged 1 commits from agent/gitea-repo-manager/80a0aac3 into main 2026-06-05 05:30:41 +00:00
Showing only changes of commit 33ef99aca3 - Show all commits
+27
View File
@@ -0,0 +1,27 @@
name: CI
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '1.24'
cache: true
- name: Vet
run: go vet ./...
- name: Test
run: go test -v -race -coverprofile=coverage.out ./...
- name: Build
run: go build -v ./...