Skip to content

Commit 13e7562

Browse files
chore: Adjusts format CI to use docker
1 parent b4942cf commit 13e7562

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
name: Format linting
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: actions/checkout@v3
18-
- uses: swift-actions/setup-swift@v1
19-
- name: GitHub Action for SwiftFormat
20-
uses: CassiusPacheco/[email protected]
21-
with:
22-
swiftformat-version: '0.49.11'
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
2325

2426
# Disabled until https://github.com/paulofaria/test-reporter is updated to Swift 5.4
2527
macos:

0 commit comments

Comments
 (0)