Skip to content

Commit c126e09

Browse files
committed
Run all tests and lint codebase on Windows
1 parent 1e4260a commit c126e09

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ jobs:
8989
key: windows-${{ matrix.windows-version }}-spm-${{ env.SWIFT_VERSION }}-${{ env.SWIFT_BUILD }}-${{ hashFiles('Package.resolved', 'Package.swift') }}
9090
restore-keys: windows-${{ matrix.windows-version }}-spm-${{ env.SWIFT_VERSION }}-${{ env.SWIFT_BUILD }}-
9191
path: .build
92-
- name: Build all targets
93-
run: swift build --build-tests
94-
- name: Run selected tests
95-
run: swift test --skip IntegrationTests --skip FileSystemAccessTests --skip FrameworkTests --skip BuiltInRulesTests
96-
# To be extended with test execution and linting ...
92+
- name: Run tests
93+
run: swift test --parallel
94+
- name: Lint codebase
95+
run: swift run swiftlint lint --strict

Tests/IntegrationTests/ConfigPathResolutionTests.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ final class ConfigPathResolutionTests: SwiftLintTestCase, @unchecked Sendable {
173173

174174
func testSymlinkedFileAndFolderAreFollowed() throws {
175175
#if os(Windows)
176-
try XCTSkip("Symlinks in fixture folder are not supported on Windows")
176+
throw XCTSkip("Symlinks in fixture folder are not supported on Windows")
177177
#endif
178178
try XCTSkipIf(
179179
ProcessInfo.processInfo.environment["SWIFTLINT_BAZEL_TEST"] != nil,
@@ -209,7 +209,7 @@ final class ConfigPathResolutionTests: SwiftLintTestCase, @unchecked Sendable {
209209

210210
func testUnicodePrivateUseAreaCharacterInPath() throws {
211211
#if os(Windows)
212-
try XCTSkip("Windows unzip does not support PUA characters in paths")
212+
throw XCTSkip("Windows unzip does not support PUA characters in paths")
213213
#endif
214214

215215
let fixture = fixturePath("_8_unicode_private_use_area")

0 commit comments

Comments
 (0)