We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b9d48c commit c12295eCopy full SHA for c12295e
1 file changed
.github/workflows/build.yml
@@ -14,14 +14,14 @@ jobs:
14
name: Lint for correct formatting
15
runs-on: ubuntu-latest
16
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
24
- swiftformat-version: '0.50.6'
+ - name: Checkout
+ uses: actions/checkout@v3
+ - name: Set up Docker Buildx
+ uses: docker/setup-buildx-action@v2
+ - name: Pull formatting docker image
+ run: docker pull ghcr.io/nicklockwood/swiftformat:latest
+ - name: Run format linting
+ run: docker run --rm -v ${{ github.workspace }}:/repo ghcr.io/nicklockwood/swiftformat:latest /repo --lint
25
26
macos:
27
name: Build and test on macos-latest
0 commit comments