Files
MealQuest/.gitea/workflows/ci.yml
T
dev_agentandClaude Opus 5.5 d1ab3932f8 Run make test and make build in CI
CI duplicated the Makefile's steps and built the binary without -trimpath
or the version-stamped -ldflags, so it could pass while make build failed
and the CI binary reported dev. Make the Makefile the single build
definition: CI now runs make test and make build, then prints the binary's
build info as evidence of the version stamp.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-03 00:30:32 -04:00

36 lines
962 B
YAML

# Runs on every push and pull request (no branch filter) so feature branches,
# their pull requests, and dev/main are all checked. Runs directly on the
# self-hosted act_runner; no container: key.
#
# The Makefile is the single build definition: CI runs `make test` and
# `make build` so it fails whenever either target would, and the binary
# carries the Makefile's -trimpath and version-stamped -ldflags.
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: false
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: make test
run: make test
- name: make build
run: make build
# Shows the build settings, including the -ldflags version stamp.
- name: show binary build info
run: go version -m bin/mealquest