@@ -148,7 +148,7 @@ final class SnapshotTestingTests: XCTestCase {
148148 func testMixedViews( ) {
149149// #if os(iOS) || os(macOS)
150150// // NB: CircleCI crashes while trying to instantiate SKView.
151- // if !ProcessInfo.processInfo.environment.keys.contains("CIRCLECI ") {
151+ // if !ProcessInfo.processInfo.environment.keys.contains("GITHUB_WORKFLOW ") {
152152// let webView = WKWebView(frame: .init(x: 0, y: 0, width: 50, height: 50))
153153// webView.loadHTMLString("🌎", baseURL: nil)
154154//
@@ -186,7 +186,7 @@ final class SnapshotTestingTests: XCTestCase {
186186 button. bezelStyle = . rounded
187187 button. title = " Push Me "
188188 button. sizeToFit ( )
189- if !ProcessInfo. processInfo. environment. keys. contains ( " CIRCLECI " ) {
189+ if !ProcessInfo. processInfo. environment. keys. contains ( " GITHUB_WORKFLOW " ) {
190190 assertSnapshot ( matching: button, as: . image)
191191 assertSnapshot ( matching: button, as: . recursiveDescription)
192192 }
@@ -200,7 +200,7 @@ final class SnapshotTestingTests: XCTestCase {
200200 view. wantsLayer = true
201201 view. layer? . backgroundColor = NSColor . green. cgColor
202202 view. layer? . cornerRadius = 5
203- if !ProcessInfo. processInfo. environment. keys. contains ( " CIRCLECI " ) {
203+ if !ProcessInfo. processInfo. environment. keys. contains ( " GITHUB_WORKFLOW " ) {
204204 assertSnapshot ( matching: view, as: . image)
205205 assertSnapshot ( matching: view, as: . recursiveDescription)
206206 }
@@ -224,7 +224,7 @@ final class SnapshotTestingTests: XCTestCase {
224224 label. isBezeled = false
225225 label. isEditable = false
226226 #endif
227- if !ProcessInfo. processInfo. environment. keys. contains ( " CIRCLECI " ) {
227+ if !ProcessInfo. processInfo. environment. keys. contains ( " GITHUB_WORKFLOW " ) {
228228 label. text = " Hello. "
229229 assertSnapshot ( matching: label, as: . image( precision: 0.9 ) , named: platform)
230230 label. text = " Hello "
@@ -236,7 +236,7 @@ final class SnapshotTestingTests: XCTestCase {
236236 func testSCNView( ) {
237237// #if os(iOS) || os(macOS) || os(tvOS)
238238// // NB: CircleCI crashes while trying to instantiate SCNView.
239- // if !ProcessInfo.processInfo.environment.keys.contains("CIRCLECI ") {
239+ // if !ProcessInfo.processInfo.environment.keys.contains("GITHUB_WORKFLOW ") {
240240// let scene = SCNScene()
241241//
242242// let sphereGeometry = SCNSphere(radius: 3)
@@ -273,7 +273,7 @@ final class SnapshotTestingTests: XCTestCase {
273273 func testSKView( ) {
274274// #if os(iOS) || os(macOS) || os(tvOS)
275275// // NB: CircleCI crashes while trying to instantiate SKView.
276- // if !ProcessInfo.processInfo.environment.keys.contains("CIRCLECI ") {
276+ // if !ProcessInfo.processInfo.environment.keys.contains("GITHUB_WORKFLOW ") {
277277// let scene = SKScene(size: .init(width: 50, height: 50))
278278// let node = SKShapeNode(circleOfRadius: 15)
279279// node.fillColor = .red
@@ -775,7 +775,7 @@ final class SnapshotTestingTests: XCTestCase {
775775 let html = try String ( contentsOf: fixtureUrl)
776776 let webView = WKWebView ( )
777777 webView. loadHTMLString ( html, baseURL: nil )
778- if !ProcessInfo. processInfo. environment. keys. contains ( " CIRCLECI " ) {
778+ if !ProcessInfo. processInfo. environment. keys. contains ( " GITHUB_WORKFLOW " ) {
779779 assertSnapshot (
780780 matching: webView,
781781 as: . image( size: . init( width: 800 , height: 600 ) ) ,
0 commit comments