From 009e048a79f1c81feeb5a751536aee9fe79c389d Mon Sep 17 00:00:00 2001 From: lzw-723 Date: Sun, 5 Apr 2026 23:10:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=9E=84=E5=BB=BA=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C=E6=B5=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/go-ci.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .gitea/workflows/go-ci.yml diff --git a/.gitea/workflows/go-ci.yml b/.gitea/workflows/go-ci.yml new file mode 100644 index 0000000..da9dc9c --- /dev/null +++ b/.gitea/workflows/go-ci.yml @@ -0,0 +1,35 @@ +name: Go CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test-and-build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23' + cache: true + + - name: Download dependencies + run: go mod download + + - name: Tidy modules + run: go mod tidy + + - name: Run go vet + run: go vet ./... + + # - name: Run tests + # run: go test -v -race -coverprofile=coverage.out ./... + + - name: Build + run: go build -v -o butterfliu . \ No newline at end of file