Skip to content

Commit b3c02c5

Browse files
chore: Adjusts format CI to use docker
1 parent 3a6748e commit b3c02c5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
name: Format linting
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
14-
- uses: sinoru/actions-setup-swift@v2
15-
with:
16-
swift-version: '5.6.1'
17-
- name: GitHub Action for SwiftFormat
18-
uses: CassiusPacheco/action-swiftformat@v0.1.0
19-
with:
20-
swiftformat-version: '0.49.17'
13+
- name: Checkout
14+
uses: actions/checkout@v3
15+
- name: Set up Docker Buildx
16+
uses: docker/setup-buildx-action@v2
17+
- name: Pull formatting docker image
18+
run: docker pull ghcr.io/nicklockwood/swiftformat:latest
19+
- name: Run format linting
20+
run: docker run --rm -v ${{ github.workspace }}:/repo ghcr.io/nicklockwood/swiftformat:latest /repo --lint
2121
macos-build:
2222
name: Build and test on ${{ matrix.os }}
2323
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)