Skip to content

Commit

Permalink
Add swiftlint
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewelwell committed Apr 26, 2024
1 parent e78bd04 commit 60f0764
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,3 +27,18 @@ jobs:
run: swift build -v
- name: Run tests
run: swift test -v

swift-lint:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Run SwiftLint
uses: norio-nomura/[email protected]
# TODO: enable these settings:
# env:
# DIFF_BASE: ${{ github.base_ref }}
# with:
# args: --strict
7 changes: 6 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,15 @@ let package = Package(
.target(
name: "FlagsmithClient",
dependencies: [],
path: "FlagsmithClient/Classes"),
path: "FlagsmithClient/Classes",
plugins: [
.plugin(name: "SwiftLintBuildToolPlugin", package: "SwiftLint")]),
.testTarget(
name: "FlagsmitClientTests",
dependencies: ["FlagsmithClient"],
path: "FlagsmithClient/Tests"),
],
dependencies: [
.package(url: "https://github.com/realm/SwiftLint.git", from: "0.54.0")
]
)

0 comments on commit 60f0764

Please sign in to comment.