chore: add .gitea CI/CD workflows
All checks were successful
CI / build (push) Successful in 1m4s

This commit is contained in:
2026-06-25 15:11:23 +03:30
parent a7dc5531e4
commit 7de79b50e1

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

@@ -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 ./...