Files
Vetting/.gitea/workflows/ci.yml
T
josh 74c09e9596
CI / Lint + build + test (push) Failing after 32s
Release / release (push) Has been cancelled
ci: disable setup-go cache to skip 4m Gitea cache server timeout
The action tries to restore from 172.18.0.2:36061 (Gitea's cache
server), times out, falls through to a fresh download anyway. Pure
waste since the runner already has the toolchain in
/opt/hostedtoolcache. Turn cache off.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-18 02:37:16 -04:00

46 lines
869 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
lint-and-test:
name: Lint + build + test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.26.x"
cache: false
- name: Install templ
run: go install github.com/a-h/templ/cmd/templ@v0.3.1001
- name: Generate templ
run: templ generate
- name: Verify go.mod + go.sum are tidy
run: |
go mod tidy
git diff --exit-code go.mod go.sum
- name: Vet
run: go vet ./...
- name: Build (host)
run: |
go build ./...
GOOS=linux GOARCH=amd64 go build ./...
- name: Test
run: go test -race -count=1 ./...