From 2506f00c2ebc93ca28a5d17095e34c5e79212feb Mon Sep 17 00:00:00 2001 From: Max Goedjen Date: Sat, 6 Sep 2025 23:07:04 -0700 Subject: [PATCH] Scripts --- .github/workflows/release.yml | 2 + .github/workflows/test.yml | 4 +- Sources/Config/Secretive.xctestplan | 22 +++++++-- .../xcschemes/PackageTests.xcscheme | 46 +++++++++++++++++++ 4 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d69dfa..7f2d43d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,6 +24,8 @@ jobs: - name: Set Environment run: sudo xcrun xcode-select -s /Applications/Xcode_26.0.app - name: Test + run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme PackageTests test + # SPM doesn't seem to pick up on the tests currently? run: swift test --build-system swiftbuild --package-path Sources/Packages build: permissions: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2fb5150..0e2f077 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,8 @@ jobs: - name: Set Environment run: sudo xcrun xcode-select -s /Applications/Xcode_26.0.app - name: Test Main Packages - run: swift test --build-system swiftbuild --package-path Sources/Packages + run: xcrun xcodebuild -project Sources/Secretive.xcodeproj -scheme PackageTests test + # SPM doesn't seem to pick up on the tests currently? + # run: swift test --build-system swiftbuild --package-path Sources/Packages - name: Test SecretKit Packages run: swift test --build-system swiftbuild diff --git a/Sources/Config/Secretive.xctestplan b/Sources/Config/Secretive.xctestplan index fb2bac9..61b77d0 100644 --- a/Sources/Config/Secretive.xctestplan +++ b/Sources/Config/Secretive.xctestplan @@ -13,12 +13,24 @@ }, "testTargets" : [ { - "enabled" : false, - "parallelizable" : true, "target" : { - "containerPath" : "container:Secretive.xcodeproj", - "identifier" : "50617D9323FCE48E0099B055", - "name" : "SecretiveTests" + "containerPath" : "container:Packages", + "identifier" : "BriefTests", + "name" : "BriefTests" + } + }, + { + "target" : { + "containerPath" : "container:Packages", + "identifier" : "SecretKitTests", + "name" : "SecretKitTests" + } + }, + { + "target" : { + "containerPath" : "container:Packages", + "identifier" : "SecretAgentKitTests", + "name" : "SecretAgentKitTests" } } ], diff --git a/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme new file mode 100644 index 0000000..500661b --- /dev/null +++ b/Sources/Secretive.xcodeproj/xcshareddata/xcschemes/PackageTests.xcscheme @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + +