Skip to content

Commit fe38e48

Browse files
committed
workflows: Disable end-to-end tests in GitHub Actions
There is a good chance that GitHub Actions will be able to run these tests, but we will disable them for now in order to get the unit tests running. The end-to-end tests could not run with swift-ci, so disabling them here does not reduce CI coverage.
1 parent f300416 commit fe38e48

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Tests/SwiftSDKGeneratorTests/EndToEndTests.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ final class RepeatedBuildTests: XCTestCase {
121121
private let logger = Logger(label: "swift-sdk-generator")
122122

123123
func testRepeatedSDKBuilds() async throws {
124-
if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") {
124+
if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL")
125+
|| ProcessInfo.processInfo.environment.keys.contains("GITHUB_ACTIONS")
126+
{
125127
throw XCTSkip(
126128
"EndToEnd tests cannot currently run in CI: https://github.com/swiftlang/swift-sdk-generator/issues/145"
127129
)
@@ -296,7 +298,9 @@ func buildTestcases(config: SDKConfiguration) async throws {
296298
var logger = Logger(label: "EndToEndTests")
297299
logger[metadataKey: "testcase"] = "testPackageInitExecutable"
298300

299-
if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") {
301+
if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL")
302+
|| ProcessInfo.processInfo.environment.keys.contains("GITHUB_ACTIONS")
303+
{
300304
throw XCTSkip(
301305
"EndToEnd tests cannot currently run in CI: https://github.com/swiftlang/swift-sdk-generator/issues/145"
302306
)

0 commit comments

Comments
 (0)