From e3b5d65fc93a7258c5839436f3fd087bc6681671 Mon Sep 17 00:00:00 2001 From: Vladimir Kukushkin Date: Wed, 24 Jun 2026 12:42:03 +0100 Subject: [PATCH] Enable Xcode tests (#473) Simulators seem to have stabilized in CI, we can enabled the tests. ### Motivation: `swift-log` is expected to be used on various platforms, we should run tests against them. ### Modifications: - Run tests on various tests in simulators in PRs and nightly. - Fix tests to actually compile there. ### Result: Tests are now running in simulators. Supersedes #431. --- .github/workflows/main.yml | 14 ++++++++------ .github/workflows/pull_request.yml | 8 ++++++++ Tests/LoggingTests/LogEventTest.swift | 1 + 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fde5dc4..3efa3e7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -52,12 +52,14 @@ jobs: with: runner_pool: nightly build_scheme: swift-log-Package - debug_output_enabled: true - macos_xcode_test_enabled: false - ios_xcode_test_enabled: false - watchos_xcode_test_enabled: false - tvos_xcode_test_enabled: false - visionos_xcode_test_enabled: false + swift_6_1_enabled: true + swift_6_2_enabled: true + swift_6_3_enabled: true + macos_xcode_test_enabled: true + ios_xcode_test_enabled: true + watchos_xcode_test_enabled: true + tvos_xcode_test_enabled: true + visionos_xcode_test_enabled: true wasm: name: Wasm Swift SDK diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 1a60d39..09bdcff 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -58,6 +58,14 @@ jobs: runner_pool: general build_scheme: swift-log-Package swift_test_enabled: true + swift_6_1_enabled: true + swift_6_2_enabled: true + swift_6_3_enabled: true + macos_xcode_test_enabled: true + ios_xcode_test_enabled: true + watchos_xcode_test_enabled: true + tvos_xcode_test_enabled: true + visionos_xcode_test_enabled: true android: name: Android Swift SDK diff --git a/Tests/LoggingTests/LogEventTest.swift b/Tests/LoggingTests/LogEventTest.swift index 1c0c39b..9edbf1a 100644 --- a/Tests/LoggingTests/LogEventTest.swift +++ b/Tests/LoggingTests/LogEventTest.swift @@ -12,6 +12,7 @@ // //===----------------------------------------------------------------------===// +import Foundation import Testing @testable import Logging