30 lines
1 KiB
YAML
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
|