Skip to content

Commit

Permalink
Update lint workflow (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
finnvoor authored Apr 5, 2024
1 parent 90fed97 commit 4428d70
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/Lint.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
name: Lint
on:
pull_request:
push:
branches-ignore:
- main

jobs:
Lint:
runs-on: macos-14
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- name: SwiftFormat
run: |
swiftformat --lint . --swiftversion 6.0 --reporter github-actions-log
run: swiftformat --lint . --reporter github-actions-log
2 changes: 2 additions & 0 deletions .swiftformat
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
--swiftversion 6.0

--enable blankLineAfterImports
--enable blankLinesBetweenImports
--enable blockComments
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ final class Game: PlaydateGame {
```

## Contributing
I'm happy to accept contributions on this project, whether it's bug fixes, implementing missing features, or opening an issue. Please try to follow the existing conventions/style in the project. Code should be formatted before merge using `swiftformat . --swiftversion 6.0`, but I can run this before merging if you don't want to install `swiftformat`.
I'm happy to accept contributions on this project, whether it's bug fixes, implementing missing features, or opening an issue. Please try to follow the existing conventions/style in the project. Code should be formatted before merge using `swiftformat .`, but I can run this before merging if you don't want to install `swiftformat`.

## Acknowledgements

Expand Down

0 comments on commit 4428d70

Please sign in to comment.