From 7de79b50e1db172c5b94df3126deb391e4376cd5 Mon Sep 17 00:00:00 2001 From: db123 Date: Thu, 25 Jun 2026 15:11:23 +0330 Subject: [PATCH] chore: add .gitea CI/CD workflows --- .gitea/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/ci.yml diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..8415d42 --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [main, master] + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + env: + # temporary: proxy required due to firewall blocks + HTTP_PROXY: http://192.168.100.2:10808 + HTTPS_PROXY: http://192.168.100.2:10808 + steps: + - name: Install system dependencies (Node.js, Git) + run: | + apt-get update + apt-get install -y nodejs git ca-certificates + + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.26" + + - name: Check formatting + run: test -z "$(gofmt -d .)" || exit 1 + + - name: Vet + run: go vet ./... + + - name: Build + run: go build ./... + + - name: Test + run: go test ./...