Files
sherlock/.gitea/workflows/ci.yaml
T
amacocian 801bbcec09
CI / build (push) Has been cancelled
Phase 0
2026-05-24 21:53:20 +02:00

41 lines
1.0 KiB
YAML

name: CI
# Go CI for sherlock. Runs `go vet`, `go test -race`, `go build` on every
# push and PR. No deploy pipeline — sherlock is operator-installed via
# `go install`, not host-deployed.
#
# Runner notes:
# - The Charlie runner image (gitea/act_runner + git/sops/docker-cli/bash)
# does NOT ship a Go toolchain. setup-go installs one at job time.
# - runs-on: self-hosted picks any Charlie runner. No SSH-into-host
# gymnastics required because there's no docker build / no host state
# to mutate; everything runs inside the runner container.
on:
push:
branches: [main]
pull_request:
workflow_dispatch:
jobs:
build:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.23"
cache: true
- name: go vet
run: go vet ./...
- name: go test -race
run: go test ./... -race
- name: go build
run: go build ./...