Skip to content

Add swift-format GitHub Action, config, and pre-commit hook #5

Add swift-format GitHub Action, config, and pre-commit hook

Add swift-format GitHub Action, config, and pre-commit hook #5

Workflow file for this run

name: swift-format
on:
pull_request:
paths:
- '.github/workflows/swift-format.yml'
- '.swift-format'
- '**/*.swift'
permissions:
contents: read
jobs:
swift-format:
runs-on: macos-latest
steps:
- uses: actions/checkout@v4
- name: Lint with swift-format
run: xcrun swift-format lint --strict -r -p .