Update validate-swift.yml
This commit is contained in:
parent
5654411505
commit
6f2046c7ed
23
.github/workflows/validate-swift.yml
vendored
23
.github/workflows/validate-swift.yml
vendored
@ -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}}
|
||||||
|
Loading…
Reference in New Issue
Block a user