Skip to content

Commit

Permalink
Skip on CI
Browse files Browse the repository at this point in the history
  • Loading branch information
giginet committed Jan 29, 2024
1 parent 712c578 commit 2467f8a
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions Tests/ScipioKitTests/RunnerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ final class RunnerTests: XCTestCase {

private let plistDecoder: PropertyListDecoder = .init()

private func skipIfCIIsNotSupported() throws {
let isCI = (ProcessInfo.processInfo.environment["IS_CI"] ?? "") == "1"
#if swift(>=5.10)
try XCTSkipIf(isCI, "Currently, GitHub Action doesn't support Xcode 15.3. So this test can't be passed.")
#endif
}

override class func setUp() {
LoggingSystem.bootstrap { _ in SwiftLogNoOpLogHandler() }

Expand Down Expand Up @@ -439,6 +446,8 @@ final class RunnerTests: XCTestCase {
}

func testWithPlatformMatrix() async throws {
try skipIfCIIsNotSupported()

let runner = Runner(
mode: .prepareDependencies,
options: .init(
Expand Down Expand Up @@ -480,10 +489,7 @@ final class RunnerTests: XCTestCase {
}

func testWithResourcePackage() async throws {
let isCI = (ProcessInfo.processInfo.environment["IS_CI"] ?? "") == "1"
#if swift(>=5.10)
try XCTSkipIf(isCI, "Currently, GitHub Action doesn't support Xcode 15.3. So this test can't be passed.")
#endif
try skipIfCIIsNotSupported()

let runner = Runner(
mode: .createPackage,
Expand Down

0 comments on commit 2467f8a

Please sign in to comment.