diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 87827867c..d6313768d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -89,8 +89,7 @@ jobs: key: windows-${{ matrix.windows-version }}-spm-${{ env.SWIFT_VERSION }}-${{ env.SWIFT_BUILD }}-${{ hashFiles('Package.resolved', 'Package.swift') }} restore-keys: windows-${{ matrix.windows-version }}-spm-${{ env.SWIFT_VERSION }}-${{ env.SWIFT_BUILD }}- path: .build - - name: Build all targets - run: swift build --build-tests - - name: Run selected tests - run: swift test --skip IntegrationTests --skip FileSystemAccessTests --skip FrameworkTests --skip BuiltInRulesTests - # To be extended with test execution and linting ... + - name: Run tests + run: swift test --parallel + - name: Lint codebase + run: swift run swiftlint lint --strict diff --git a/Tests/IntegrationTests/ConfigPathResolutionTests.swift b/Tests/IntegrationTests/ConfigPathResolutionTests.swift index 0396a02e7..5be5248dc 100644 --- a/Tests/IntegrationTests/ConfigPathResolutionTests.swift +++ b/Tests/IntegrationTests/ConfigPathResolutionTests.swift @@ -173,7 +173,7 @@ final class ConfigPathResolutionTests: SwiftLintTestCase, @unchecked Sendable { func testSymlinkedFileAndFolderAreFollowed() throws { #if os(Windows) - try XCTSkip("Symlinks in fixture folder are not supported on Windows") + throw XCTSkip("Symlinks in fixture folder are not supported on Windows") #endif try XCTSkipIf( ProcessInfo.processInfo.environment["SWIFTLINT_BAZEL_TEST"] != nil, @@ -209,7 +209,7 @@ final class ConfigPathResolutionTests: SwiftLintTestCase, @unchecked Sendable { func testUnicodePrivateUseAreaCharacterInPath() throws { #if os(Windows) - try XCTSkip("Windows unzip does not support PUA characters in paths") + throw XCTSkip("Windows unzip does not support PUA characters in paths") #endif let fixture = fixturePath("_8_unicode_private_use_area")