Skip to content

Commit

Permalink
Run swiftlint in CI
Browse files Browse the repository at this point in the history
Fixing lint issues with Package.swift and setting line length warning
to 150
  • Loading branch information
emawby committed Aug 30, 2022
1 parent bc028b1 commit 4195a9d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
default="UnitTestApp"
echo $default | cat >default
echo Using default scheme: $default
- name: Run Swift Lint
run: |
swiftlint
- name: Build
env:
scheme: ${{ 'UnitTestApp' }}
Expand Down
1 change: 1 addition & 0 deletions .swiftlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
line_length: 150
3 changes: 1 addition & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ let package = Package(
targets: ["OneSignalWrapper"]),
.library(
name: "OneSignalExtension",
targets: ["OneSignalExtensionWrapper"]),
targets: ["OneSignalExtensionWrapper"])
],
targets: [
.target(
Expand Down Expand Up @@ -63,4 +63,3 @@ let package = Package(
)
]
)

0 comments on commit 4195a9d

Please sign in to comment.