Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ CheatSheet builds and tests on Xcode Cloud, not GitHub Actions. Every push to
`develop` or `main`, and every pull request against them, triggers a build.
Xcode Cloud regenerates the project from `project.yml` on clone
(`ci_scripts/ci_post_clone.sh`), so nothing needs to change in that script when
adding new source files.
adding new source files. The UI test gate uses the `CheatSheetiOSUISmoke`
scheme, which skips `testQASweep` and `MarketingScreenshotTests`; run those on
demand through `CheatSheetiOSUI` with `-only-testing`.

## Widget Signing

Expand Down
15 changes: 15 additions & 0 deletions ci_scripts/Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions ci_scripts/ci_post_clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ fi
cd "$CI_PRIMARY_REPOSITORY_PATH"
xcodegen generate --spec project.yml --project . --project-root .

# Xcode Cloud disables automatic SPM resolution and requires a resolved
# manifest to already exist at this path before it will build
# (https://developer.apple.com/documentation/xcode/making-dependencies-available-to-xcode-cloud).
# CheatSheet.xcodeproj is gitignored, so this pin can't live at its normal
# location in the repo; keep the source of truth in ci_scripts/ and copy it
# into place right after the project is generated.
mkdir -p CheatSheet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm
cp ci_scripts/Package.resolved CheatSheet.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved

# Fail loudly if the workflow's Environment tab picked an SDK major CheatSheet
# does not expect (a beta, or a version this branch has not been updated for),
# rather than silently archiving something that will bounce at App Store
Expand Down
19 changes: 19 additions & 0 deletions project.yml
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,22 @@ schemes:
- CheatSheetiOSUITests
run:
config: Debug
# Xcode Cloud's Test action cannot pass -skip-testing, so the gate the
# retired GitHub Actions pipeline ran lives here as scheme skips instead.
# Skip by name, never allow-list: new UI test classes run automatically.
# testQASweep (flaky screenshot monolith) and MarketingScreenshotTests
# (App Store captures) stay on demand via CheatSheetiOSUI and -only-testing.
CheatSheetiOSUISmoke:
build:
targets:
CheatSheetiOS: all
CheatSheetiOSWidgets: all
CheatSheetiOSUITests: testing
test:
targets:
- name: CheatSheetiOSUITests
skippedTests:
- CheatSheetiOSUITests/testQASweep()
- MarketingScreenshotTests
run:
config: Debug