Skip to content

Commit c12295e

Browse files
chore: Adjusts format CI to use docker
1 parent 1b9d48c commit c12295e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ jobs:
1414
name: Lint for correct formatting
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: swift-actions/setup-swift@v1
19-
with:
20-
swift-version: "5.7.1"
21-
- name: GitHub Action for SwiftFormat
22-
uses: CassiusPacheco/action-swiftformat@v0.1.0
23-
with:
24-
swiftformat-version: '0.50.6'
17+
- name: Checkout
18+
uses: actions/checkout@v3
19+
- name: Set up Docker Buildx
20+
uses: docker/setup-buildx-action@v2
21+
- name: Pull formatting docker image
22+
run: docker pull ghcr.io/nicklockwood/swiftformat:latest
23+
- name: Run format linting
24+
run: docker run --rm -v ${{ github.workspace }}:/repo ghcr.io/nicklockwood/swiftformat:latest /repo --lint
2525

2626
macos:
2727
name: Build and test on macos-latest

0 commit comments

Comments
 (0)