thermograph/backend/.forgejo/workflows/pr-build.yml
Emi Griffith a4be7066e5 Subtree-merge thermograph-backend (origin/main) into backend/
git-subtree-dir: backend
git-subtree-mainline: 6723fc0326
git-subtree-split: 83c2e05b96
2026-07-22 22:01:11 -07:00

30 lines
1 KiB
YAML

name: PR build (required check)
# Every PR into `dev` runs the build check (build.yml's build-only `docker
# build` sanity check, reused via `uses:`). Mirrors the monorepo's
# pr-build.yml: no custom merge step here -- Forgejo has native branch
# protection + auto-merge, so this workflow's only job is to BE the required
# status check on PRs targeting `dev`.
#
# One-time web UI setup (not expressible in this file):
# Settings -> Branches -> add a protected-branch rule for `dev`
# -> enable "Enable Status Check", list this job's name ("build")
# -> merge style: squash
# Then on a ready PR: "Auto merge when checks succeed".
#
# A native auto-merge is a real git merge, so it fires deploy-dev.yml's push
# trigger naturally -- no separate deploy job needed here, and no "direct push
# vs PR merge" double-trigger to avoid.
on:
pull_request:
branches: [dev]
concurrency:
group: dev-pr-${{ github.event.pull_request.number }}
cancel-in-progress: true
jobs:
build:
name: build
uses: ./.forgejo/workflows/build.yml