Update lint-staged #101
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: swift-format | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 2 | |
- name: Lint | |
uses: mtgto/swift-format-action@main | |
with: | |
# Please comment out if you won't specify configuration file | |
configuration_file: .swift-format | |
# default is false | |
all_files: true | |
# default is -1 (infinity) | |
max_warnings: 0 |