mirror upstream before building host releases
custom release / build-custom-release (push) Successful in 8m24s
custom release / build-custom-release (push) Successful in 8m24s
This commit is contained in:
@@ -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" {
|
||||
|
||||
Reference in New Issue
Block a user