Files
llmgw/.gitea/workflows/ci.yml
T
ilkerandClaude Opus 5 664c8e9126
CI / test (push) Successful in 1m16s
ci: add workflow_dispatch and take the Go version from go.mod
The runner this targets is a containerized act_runner registered with the
ubuntu-latest label, separate from maas-builder: that one runs in host mode as
root on the image build machine, which is not somewhere a test suite belongs.

workflow_dispatch lets the queued runs be retried from the UI once a runner
exists, without needing an empty commit.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 01:19:12 +02:00

41 lines
1.1 KiB
YAML

# Runs on a containerized act_runner (label: ubuntu-latest).
#
# The runner needs outbound access to the Docker registry for its job image and
# to github.com for the actions below. If GitHub is unreachable from the runner,
# replace the checkout step with a plain `git clone` and install Go by hand —
# see .gitea/workflows/README.md in maas-proxmox for that pattern.
name: CI
on:
push:
branches: [main]
pull_request:
# Lets a queued or failed run be retried from the UI without a new commit.
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
# Track the toolchain in go.mod rather than pinning it twice.
go-version-file: go.mod
cache: true
- name: Check formatting
run: |
out=$(gofmt -l .)
if [ -n "$out" ]; then echo "gofmt needed on:"; echo "$out"; exit 1; fi
- name: Vet
run: go vet ./...
- name: Test with the race detector
run: go test -race ./...
- name: Build
run: go build ./...