Skip to content

Commit d179502

Browse files
committed
Skip HTTPClient tests in workflows
1 parent 61d86a7 commit d179502

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

.github/workflows/pull_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Prepare the action
3838
run: ./scripts/prep-gh-action.sh --install-swiftly
3939
- name: Build and Test
40-
run: swift test --no-parallel
40+
run: swift test --skip HTTPClientTests
4141

4242
releasebuildcheck:
4343
name: Release Build Check

Tests/SwiftlyTests/HTTPClientTests.swift

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@ import Testing
88

99
@Suite(.serialized) struct HTTPClientTests {
1010
@Test func getSwiftOrgGPGKeys() async throws {
11-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd.name != PlatformDefinition.rhel9.name && pd.name != PlatformDefinition.ubuntu2004.name else {
12-
return
13-
}
14-
1511
let tmpFile = mktemp()
1612
try await create(file: tmpFile, contents: nil)
1713

@@ -29,10 +25,6 @@ import Testing
2925
}
3026

3127
@Test func getSwiftToolchain() async throws {
32-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd.name != PlatformDefinition.rhel9.name && pd.name != PlatformDefinition.ubuntu2004.name else {
33-
return
34-
}
35-
3628
let tmpFile = mktemp()
3729
try await create(file: tmpFile, contents: nil)
3830
let tmpFileSignature = mktemp(ext: ".sig")
@@ -62,10 +54,6 @@ import Testing
6254
}
6355

6456
@Test func getSwiftlyRelease() async throws {
65-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd.name != PlatformDefinition.rhel9.name && pd.name != PlatformDefinition.ubuntu2004.name else {
66-
return
67-
}
68-
6957
let tmpFile = mktemp()
7058
try await create(file: tmpFile, contents: nil)
7159
let tmpFileSignature = mktemp(ext: ".sig")
@@ -95,10 +83,6 @@ import Testing
9583
}
9684

9785
@Test func getSwiftlyReleaseMetadataFromSwiftOrg() async throws {
98-
guard case let pd = try await Swiftly.currentPlatform.detectPlatform(SwiftlyTests.ctx, disableConfirmation: true, platform: nil), pd.name != PlatformDefinition.rhel9.name && pd.name != PlatformDefinition.ubuntu2004.name else {
99-
return
100-
}
101-
10286
let httpClient = SwiftlyHTTPClient(httpRequestExecutor: HTTPRequestExecutorImpl())
10387
do {
10488
let currentRelease = try await httpClient.getCurrentSwiftlyRelease()

0 commit comments

Comments
 (0)