Update validate-swift.yml

This commit is contained in:
Marc Rousavy 2021-02-23 12:29:16 +01:00
parent 5654411505
commit 6f2046c7ed

View File

@ -29,30 +29,15 @@ jobs:
WORKING_DIRECTORY: ios
SwiftFormat:
name: SwiftFormat
runs-on: ubuntu-latest
description: 'https://github.com/nicklockwood/SwiftFormat'
runs:
using: 'docker'
image: 'Dockerfile'
env:
working-directory: ./ios
steps:
- uses: actions/checkout@v2
- name: Cache packages/Tools/.build
uses: actions/cache@v1
with:
path: packages/Tools/.build
key: ${{ runner.os }}-swift-tools-build-${{ hashFiles('packages/Tools/Package.resolved') }}
restore-keys: |
${{ runner.os }}-swift-tools-build-
- name: Cache ~/bin
uses: actions/cache@v1
with:
path: ~/bin
key: ${{ runner.os }}-home-bin-${{ hashFiles('packages/Tools/Package.resolved') }}
restore-keys: |
${{ runner.os }}-home-bin-
- name: Install Swift tools
run: make swift-tools
working-directory: ${{env.working-directory}}
- name: Format Swift code
run: swiftformat --verbose .
working-directory: ${{env.working-directory}}