Skip to content

Commit 9034492

Browse files
jkmasselclaude
andcommitted
Add Buildkite job to run cross-platform Swift package tests
Runs `swift test` from the repository root to verify that cross-platform modules build and pass tests on macOS without Xcode. Co-Authored-By: Claude Opus 4.6 <[email protected]>
1 parent c114d3a commit 9034492

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash -eu
2+
3+
if "$(dirname "${BASH_SOURCE[0]}")/should-skip-job.sh" --job-type validation; then
4+
exit 0
5+
fi
6+
7+
echo "--- :swift: Running cross-platform Swift package tests"
8+
swift test

.buildkite/pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ steps:
5858
- group: "🔬 Unit Tests"
5959
key: unit_tests_group
6060
steps:
61+
- label: "🔬 :swift: Swift Package Tests"
62+
command: .buildkite/commands/run-swift-package-tests.sh
63+
plugins: [$CI_TOOLKIT_PLUGIN]
64+
notify:
65+
- github_commit_status:
66+
context: "Swift Package Tests"
67+
6168
- label: "🔬 :wordpress: Unit Tests"
6269
command: ".buildkite/commands/run-unit-tests.sh"
6370
depends_on: "build_wordpress"

0 commit comments

Comments
 (0)