From 6576aa576995db77d58c0c02f12ced0a5a4a1a0f Mon Sep 17 00:00:00 2001 From: Brandon Evans Date: Mon, 5 Oct 2020 20:12:44 -0600 Subject: [PATCH] Use xcodebuild instead of swift test as a workaround for SPM package resource bug https://forums.swift.org/t/swift-5-3-spm-resources-in-tests-uses-wrong-bundle-path/37051/10 --- .github/workflows/ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4b365cc..92f2678 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,4 +8,6 @@ jobs: - name: Run tests env: DEVELOPER_DIR: /Applications/Xcode_12.app - run: swift test + # Normally would use `swift test` but there's a bug related to SPM package resources, so using xcodebuild as a workaround + # https://forums.swift.org/t/swift-5-3-spm-resources-in-tests-uses-wrong-bundle-path/37051/10 + run: xcodebuild test -scheme xcodes