mirror of
https://github.com/DefinedNet/mobile_nebula.git
synced 2025-02-15 16:25:26 +00:00
Check swift formatting in CI
This commit is contained in:
parent
e128658599
commit
c46166b45a
1 changed files with 21 additions and 0 deletions
21
.github/workflows/swiftfmt.yml
vendored
Normal file
21
.github/workflows/swiftfmt.yml
vendored
Normal 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
|
Loading…
Reference in a new issue