Add command line tool #3
Workflow file for this run
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: SwiftFormat | |
on: | |
pull_request: | |
paths: | |
- '.github/workflows/swiftformat.yml' | |
- '.swiftformat' | |
- '**/*.swift' | |
jobs: | |
SwiftFormat: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Swift | |
uses: swift-actions/[email protected] | |
with: | |
swift-version: "5.10" | |
- name: Set up Mint | |
uses: irgaly/[email protected] | |
- name: Run SwiftFormat with Mint | |
run: mint run swiftformat . --lint |