Skip to content

Commit

Permalink
add SwiftLintPlugins
Browse files Browse the repository at this point in the history
  • Loading branch information
417-72KI committed Aug 27, 2024
1 parent fca4ea3 commit bd89a66
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .github/versions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"xcode_version": "14.2",
"xcode_version": "15.4",
"swift_version": [
"5.7",
"5.8"
"5.9",
"5.10"
]
}
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
macOS:
name: macOS
needs: generate-matrix
runs-on: macOS-12
runs-on: macOS-latest
env:
DEVELOPER_DIR: /Applications/Xcode_${{ fromJson(needs.generate-matrix.outputs.matrix).xcode_version }}.app/Contents/Developer
steps:
Expand Down
17 changes: 16 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
// swift-tools-version:5.7
// swift-tools-version:5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let isDevelop = true

let package = Package(
name: "SSGH",
platforms: [.macOS(.v12)],
Expand Down Expand Up @@ -51,3 +53,16 @@ let package = Package(
],
swiftLanguageVersions: [.v5]
)

if isDevelop {
package.dependencies.append(contentsOf: [
.package(url: "https://github.com/SimplyDanny/SwiftLintPlugins", from: "0.56.2"),
])

package.targets.filter { $0.type == .regular }.forEach {
if $0.plugins == nil { $0.plugins = [] }
$0.plugins?.append(contentsOf: [
.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLintPlugins"),
])
}
}

0 comments on commit bd89a66

Please sign in to comment.