Skip to content

Commit cd4fb4e

Browse files
authored
Merge pull request #459 from swiftlang/owenv/actions-debugging
Enable testing in GitHub Actions workflows
2 parents 9572e6d + d5d7c0a commit cd4fb4e

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
with:
1616
linux_os_versions: '["noble", "jammy", "focal", "rhel-ubi9"]'
1717
linux_pre_build_command: command -v apt >/dev/null 2>&1 && apt update && apt install -y libsqlite3-dev libncurses-dev || (command -v yum >/dev/null 2>&1 && yum update -y && yum install -y sqlite-devel ncurses-devel)
18-
linux_build_command: 'swift build'
18+
linux_build_command: 'swift test --no-parallel'
1919
linux_swift_versions: '["nightly-main", "nightly-6.2"]'
2020
windows_swift_versions: '["nightly-main"]'
21-
windows_build_command: 'swift build'
21+
windows_build_command: 'swift test --no-parallel'
2222
soundness:
2323
name: Soundness
2424
uses: swiftlang/github-workflows/.github/workflows/soundness.yml@main

Tests/SwiftBuildTests/ConsoleCommands/BuildCommandTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SWBUtil
1717
import Testing
1818
import SwiftBuildTestSupport
1919

20-
@Suite(.skipHostOS(.windows))
20+
@Suite(.skipHostOS(.windows), .skipInGitHubActions("failing in the GitHub actions runner environment"))
2121
fileprivate struct BuildCommandTests {
2222
private let commandSequenceCodec: any CommandSequenceEncodable = LLVMStyleCommandCodec()
2323

Tests/SwiftBuildTests/ConsoleCommands/CreateXCFrameworkCommandTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import SWBTestSupport
1717

1818
// Note: The functionality of this class is heavily unit tested in `XCFrameworkTests.swift`. These tests are only to ensure that the command is indeed hooked up and registered properly.
1919

20-
@Suite
20+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
2121
fileprivate struct CreateXCFrameworkCommandTests {
2222
@Test
2323
func commandInvocation() async throws {

Tests/SwiftBuildTests/ConsoleCommands/GeneralCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import SwiftBuild
1515
import SWBTestSupport
1616
import SWBUtil
1717

18-
@Suite
18+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
1919
fileprivate struct GeneralCommandsTests {
2020
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2121
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

Tests/SwiftBuildTests/ConsoleCommands/ServiceConsoleTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import SWBUtil
1919
import WinSDK
2020
#endif
2121

22-
@Suite
22+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
2323
fileprivate struct ServiceConsoleTests {
2424
@Test
2525
func emptyInput() async throws {

Tests/SwiftBuildTests/ConsoleCommands/SessionCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SWBTestSupport
1414
import Testing
1515
import SWBUtil
1616

17-
@Suite
17+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
1818
fileprivate struct SessionCommandsTests {
1919
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2020
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

Tests/SwiftBuildTests/ConsoleCommands/XcodeCommandsTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import SWBTestSupport
1414
import Testing
1515
import SWBUtil
1616

17-
@Suite
17+
@Suite(.skipInGitHubActions("failing in the GitHub actions runner environment"))
1818
fileprivate struct XcodeCommandsTests {
1919
@Test(.skipHostOS(.windows), // PTY not supported on Windows
2020
.requireHostOS(.macOS)) // something with terminal echo is different on macOS vs Linux

0 commit comments

Comments
 (0)