apple build: short fix lines first in the device-family stop; test: a stopped build exits non-zero
All checks were successful
ci / gate (push) Successful in 2s
ci / ci (push) Successful in 1m22s
ci / linux (push) Successful in 8m5s
ci / windows (push) Successful in 9m36s
ci / acceptance (bun, 22, ubuntu-22.04, Linux, bun) (push) Successful in 40s
ci / acceptance (bun, 22, windows, Windows, bun) (push) Successful in 1m2s
ci / acceptance (node20, 20, ubuntu-22.04, Linux, node) (push) Successful in 1m55s
ci / acceptance (node22, 22, ubuntu-22.04, Linux, node) (push) Successful in 2m2s
ci / record (push) Successful in 13s
ci / dev (push) Successful in 1m33s
ci / acceptance (node20, 20, windows, Windows, node) (push) Successful in 8m24s
ci / acceptance (node22, 22, windows, Windows, node) (push) Successful in 8m19s

This commit is contained in:
CRTkafa 2026-11-16 22:11:56 +07:00
parent 73e4614b34
commit af61adb9d1
3 changed files with 17 additions and 1 deletions

View file

@ -302,6 +302,10 @@ describe('device families (fake App Store Connect + project)', () => {
// the escape hatch passes the check (the run then stops later: no Xcode on this machine)
const gap = await capture(() => appleBuild(p.ctx([...argv, '--allow-device-gap']))).catch(e => ({ out: '', err: String((e as Error).message ?? e), exit: 1 }));
expect(gap.err).not.toContain('stopped before the archive');
// the ship-step path (apple build --yes): a stopped build never exits 0, and the fix is its own short line
const sr = await ship('apple build', [...argv, '--yes'], a => appleBuild({ ...p.ctx(argv), args: a }));
expect(sr.code).not.toBe(0);
expect(sr.err).toMatch(/^fix: apple\.ipad: true in storebound\.config\.ts$/m);
});
test('apple build passes the check with iPad in the project and apple.ipad true; an iPhone-only live version never blocks', async () => {