Skip to content

Commit

Permalink
Remove treat warnings as errors (-warnings-as-errors) compiler flag (#30
Browse files Browse the repository at this point in the history
)

* Update Package.swift

* Switch to ubuntu-22.04 due to test failure on Swift 6
  • Loading branch information
mikeger authored Sep 30, 2024
1 parent 37f7bc0 commit 64a7311
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: swift test -v

test-linux:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Prepare Git
Expand Down
28 changes: 8 additions & 20 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@

import PackageDescription

let sharedSettings: [SwiftSetting] = [
.unsafeFlags(["-warnings-as-errors"]),
]

let products: [PackageDescription.Product] = [
.executable(
name: "xcode-selective-test",
Expand All @@ -21,34 +17,26 @@ let targets: [PackageDescription.Target] = [
.executableTarget(
name: "xcode-selective-test",
dependencies: ["SelectiveTestingCore",
.product(name: "ArgumentParser", package: "swift-argument-parser")],
swiftSettings: sharedSettings
.product(name: "ArgumentParser", package: "swift-argument-parser")]
),
.target(name: "SelectiveTestingCore",
dependencies: ["DependencyCalculator",
"TestConfigurator",
"Git",
"PathKit",
"Rainbow",
"Yams"],
swiftSettings: sharedSettings),
"Yams"]),
.target(name: "DependencyCalculator",
dependencies: ["Workspace", "PathKit", "SelectiveTestLogger", "Git"],
swiftSettings: sharedSettings),
dependencies: ["Workspace", "PathKit", "SelectiveTestLogger", "Git"]),
.target(name: "TestConfigurator",
dependencies: ["Workspace", "PathKit", "SelectiveTestLogger"],
swiftSettings: sharedSettings),
dependencies: ["Workspace", "PathKit", "SelectiveTestLogger"]),
.target(name: "Workspace",
dependencies: ["XcodeProj", "SelectiveTestLogger"],
swiftSettings: sharedSettings),
dependencies: ["XcodeProj", "SelectiveTestLogger"]),
.target(name: "Git",
dependencies: ["SelectiveTestShell", "SelectiveTestLogger", "PathKit"],
swiftSettings: sharedSettings),
dependencies: ["SelectiveTestShell", "SelectiveTestLogger", "PathKit"]),
.target(name: "SelectiveTestLogger",
dependencies: ["Rainbow"],
swiftSettings: sharedSettings),
.target(name: "SelectiveTestShell",
swiftSettings: sharedSettings),
dependencies: ["Rainbow"]),
.target(name: "SelectiveTestShell"),
.testTarget(
name: "SelectiveTestingTests",
dependencies: ["xcode-selective-test", "PathKit"],
Expand Down

0 comments on commit 64a7311

Please sign in to comment.