Skip to content

Commit d662c29

Browse files
committed
ci(macos): run native repository regressions
1 parent 3af1d6d commit d662c29

2 files changed

Lines changed: 29 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,3 +125,24 @@ jobs:
125125
- name: Run Windows regression suite
126126
shell: cmd
127127
run: ${{ matrix.executable }} -NoLogo -NoProfile -ExecutionPolicy Bypass -File .\windows\tests\run-tests.ps1
128+
129+
macos-tests:
130+
name: macOS repository regressions
131+
runs-on: macos-latest
132+
steps:
133+
- uses: actions/checkout@v4
134+
- uses: actions/setup-node@v4
135+
with:
136+
node-version: "22"
137+
138+
- name: Locate runner Node.js
139+
id: node
140+
shell: bash
141+
run: echo "path=$(command -v node)" >> "$GITHUB_OUTPUT"
142+
143+
- name: Run macOS regressions without installed-app Doctor
144+
shell: bash
145+
env:
146+
NODE: ${{ steps.node.outputs.path }}
147+
CODEX_DREAM_SKIN_SKIP_DOCTOR: "1"
148+
run: ./macos/tests/run-tests.sh

macos/tests/run-tests.sh

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,12 @@ CRLF_BACKUP="$TMP/config-crlf-backup.json"
823823
/usr/bin/cmp -s "$CRLF_CONFIG" "$TMP/original-crlf.toml"
824824

825825
/usr/bin/env -u HOME /bin/bash -c '. "$1/scripts/common-macos.sh"; [ -n "$HOME" ] && [ "$SKIN_VERSION" = "1.2.0" ]' _ "$ROOT"
826-
"$ROOT/scripts/doctor-macos.sh" >/dev/null
826+
if [ "${CODEX_DREAM_SKIN_SKIP_DOCTOR:-0}" = "1" ]; then
827+
printf 'SKIP: Doctor requires an installed, signed Codex app.\n'
828+
DOCTOR_RESULT="skipped"
829+
else
830+
"$ROOT/scripts/doctor-macos.sh" >/dev/null
831+
DOCTOR_RESULT="passed"
832+
fi
827833

828-
printf 'PASS: syntax, payload, bundled presets, preset seeding, runtime-state safety, custom-theme, config round-trips, HOME recovery, signature, and doctor checks.\n'
834+
printf 'PASS: syntax, payload, bundled presets, preset seeding, runtime-state safety, custom-theme, config round-trips, HOME recovery, signature, and Doctor %s.\n' "$DOCTOR_RESULT"

0 commit comments

Comments
 (0)