mirror upstream before building host releases
custom release / build-custom-release (push) Successful in 8m24s

This commit is contained in:
2026-08-12 11:51:16 +02:00
parent 74d469b35e
commit ca01296949
5 changed files with 82 additions and 0 deletions
@@ -5,6 +5,19 @@ setup() {
WORKFLOW="$REPO_ROOT/.gitea/workflows/custom-release.yml"
GITHUB_WORKFLOW="$REPO_ROOT/.github/workflows/custom-release.yml"
RELEASE_SCRIPT="$REPO_ROOT/scripts/update-custom-release.sh"
SYNC_SCRIPT="$REPO_ROOT/scripts/sync-upstream.sh"
}
@test "both hosts mirror upstream before building their own release" {
run rg -n 'run: ./scripts/sync-upstream.sh' "$WORKFLOW" "$GITHUB_WORKFLOW"
[ "$status" -eq 0 ]
[ "${#lines[@]}" -eq 2 ]
run rg -n 'git push --force-with-lease=.*upstream|git push --force-with-lease=.*main' "$SYNC_SCRIPT"
[ "$status" -eq 0 ]
run rg -n 'git apply patches/sync-stignore.patch patches/webui-build-marker.patch' "$SYNC_SCRIPT"
[ "$status" -eq 0 ]
}
@test "github custom release uses a github macos runner and github releases" {