Check swift formatting in CI

This commit is contained in:
Caleb Jasik 2025-02-13 16:23:37 -06:00
parent e128658599
commit c46166b45a
No known key found for this signature in database

21
.github/workflows/swiftfmt.yml vendored Normal file
View file

@ -0,0 +1,21 @@
name: Swift format
on:
push:
branches:
- main
pull_request:
paths:
- '.github/workflows/swiftfmt.yml'
- '**.swift'
jobs:
swiftfmt:
name: Run swift format
runs-on: macos-latest
steps:
- name: Check out code
uses: actions/checkout@v4
with:
show-progress: false
- name: Check formating
run: swiftformat --lint . --reporter github-actions-log