Skip to content

Commit c40576e

Browse files
chore: Adds format script and CI
1 parent d0964db commit c40576e

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/lint.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Lint
2+
on: pull_request
3+
4+
jobs:
5+
Lint:
6+
runs-on: macos-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- name: SwiftFormat
10+
run: swiftformat --lint . --reporter github-actions-log

Scripts/format.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/bash
2+
3+
docker run --rm -v ./:/repo ghcr.io/nicklockwood/swiftformat:latest /repo

0 commit comments

Comments
 (0)