diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index c06cc36..fff448d 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -5,11 +5,12 @@ on: types: [opened, reopened, synchronize] jobs: - # tests: - # name: Test - # uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main - # with: - # linux_pre_build_command: apt-get update && apt-get install -y locales locales-all libsqlite3-dev + tests: + name: Test + uses: swiftlang/github-workflows/.github/workflows/swift_package_test.yml@main + with: + linux_pre_build_command: apt-get update && apt-get install -y locales locales-all libsqlite3-dev + enable_windows_checks: false soundness: name: Soundness uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main diff --git a/Tests/SwiftSDKGeneratorTests/EndToEndTests.swift b/Tests/SwiftSDKGeneratorTests/EndToEndTests.swift index e5abd83..e18f543 100644 --- a/Tests/SwiftSDKGeneratorTests/EndToEndTests.swift +++ b/Tests/SwiftSDKGeneratorTests/EndToEndTests.swift @@ -121,7 +121,9 @@ final class RepeatedBuildTests: XCTestCase { private let logger = Logger(label: "swift-sdk-generator") func testRepeatedSDKBuilds() async throws { - if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") { + if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") + || ProcessInfo.processInfo.environment.keys.contains("GITHUB_ACTIONS") + { throw XCTSkip( "EndToEnd tests cannot currently run in CI: https://github.com/swiftlang/swift-sdk-generator/issues/145" ) @@ -296,7 +298,9 @@ func buildTestcases(config: SDKConfiguration) async throws { var logger = Logger(label: "EndToEndTests") logger[metadataKey: "testcase"] = "testPackageInitExecutable" - if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") { + if ProcessInfo.processInfo.environment.keys.contains("JENKINS_URL") + || ProcessInfo.processInfo.environment.keys.contains("GITHUB_ACTIONS") + { throw XCTSkip( "EndToEnd tests cannot currently run in CI: https://github.com/swiftlang/swift-sdk-generator/issues/145" )