Install or upgrade tools installed by Homebrew
This commit is contained in:
parent
7cbc14978a
commit
47d5a0afcd
1 changed files with 17 additions and 4 deletions
21
.github/workflows/linting.yml
vendored
21
.github/workflows/linting.yml
vendored
|
|
@ -8,8 +8,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Installing packages
|
- name: Installing packages
|
||||||
run: brew update && brew install -f swiftformat
|
run: |
|
||||||
- name: swiftformat
|
brew update
|
||||||
|
if brew ls --version swiftformat > /dev/null; then
|
||||||
|
brew upgrade swiftformat
|
||||||
|
else
|
||||||
|
brew install swiftformat
|
||||||
|
fi
|
||||||
|
- name: Formatting code
|
||||||
run: |
|
run: |
|
||||||
swiftformat --lint .
|
swiftformat --lint .
|
||||||
|
|
||||||
|
|
@ -18,7 +24,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Installing packages
|
- name: Installing packages
|
||||||
run: brew update && brew install -f swiftlint || brew link --overwrite swiftlint
|
run: |
|
||||||
- name: swiftlint
|
brew update
|
||||||
|
if brew ls --version swiftlint > /dev/null; then
|
||||||
|
brew upgrade swiftlint
|
||||||
|
else
|
||||||
|
# For some reason the SwiftLint binary is kept at its location after shutdown.
|
||||||
|
brew install swiftlint || brew link --overwrite swiftlint
|
||||||
|
fi
|
||||||
|
- name: Linting code
|
||||||
run: |
|
run: |
|
||||||
swiftlint --strict
|
swiftlint --strict
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue