chore(repo): add gitea actions workflow
Some checks failed
CI / verify (push) Failing after 39s

This commit is contained in:
Your Name
2026-05-06 11:29:54 +08:00
parent df59c4640f
commit 34b915d2bc
2 changed files with 40 additions and 0 deletions

39
.gitea/workflows/ci.yml Normal file
View File

@@ -0,0 +1,39 @@
name: CI
on:
pull_request:
push:
branches:
- main
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Verify formatting
run: |
gofmt -w $(find . -name '*.go' -not -path './vendor/*')
git diff --exit-code
- name: Run unit and integration tests
run: go test ./... -count=1
- name: Run race tests
run: go test -race ./...
- name: Run vet
run: go vet ./...
- name: Check Gate scripts syntax
run: |
bash -n scripts/verify_preprod_gate_b.sh
bash -n scripts/verify_gate_c_rollback.sh