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 WORKING_DIRECTORY: ios
SwiftFormat: SwiftFormat:
name: SwiftFormat name: SwiftFormat
runs-on: ubuntu-latest description: 'https://github.com/nicklockwood/SwiftFormat'
runs:
using: 'docker'
image: 'Dockerfile'
env: env:
working-directory: ./ios working-directory: ./ios
steps: steps:
- uses: actions/checkout@v2 - 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 - name: Format Swift code
run: swiftformat --verbose . run: swiftformat --verbose .
working-directory: ${{env.working-directory}} working-directory: ${{env.working-directory}}