Files
Vetting/.gitea/workflows/ci.yml
T
josh 03dcf33686
CI / Lint + build + test (push) Failing after 8m44s
Release / release (push) Has been cancelled
ci: switch runs-on to ubuntu-latest to match runner label
The self-hosted Gitea runner advertises itself as `ubuntu-latest`,
not `self-hosted`, so the jobs were never getting picked up.

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

46 lines
868 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: true
- 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 ./...