@@ -11,24 +11,36 @@ jobs:
1111 fetch-depth : 1
1212 - name : ⚙️ Install swiftlint
1313 run : |
14- brew install swiftlint
14+ if [ -z "$(which swiftlint)" ]; then
15+ brew install swiftlint
16+ else
17+ swiftlint version
18+ fi
1519 env :
1620 HOMEBREW_NO_INSTALL_CLEANUP : 1
17- - name : 🧹 Code Lint
21+ - name : 🧹 iOS Code Lint
1822 run : |
23+ cd ios
1924 if [ ! -f ".swiftlint.yml" ]; then
20- curl -L https://raw.githubusercontent.com/4d-for-ios /check-workflow/master/form/quality/.swiftlint.yml --output .swiftlint.yml
25+ curl -L https://raw.githubusercontent.com/4d-for-mobile /check-workflow/master/form/quality/.swiftlint.yml --output .swiftlint.yml
2126 fi
2227 swiftlint --strict
2328 - name : ⚙️ Install iblinter
2429 run : |
25- brew install IBDecodable/homebrew-tap/iblinter
30+ set -x
31+ if [ -z "$(which iblinter)" ]; then
32+ brew install iblinter
33+ else
34+ iblinter version
35+ fi
36+ exit 0
2637 env :
2738 HOMEBREW_NO_INSTALL_CLEANUP : 1
28- - name : 🧹 Storyboard Lint
39+ - name : 🧹 iOS Storyboard Lint
2940 run : |
41+ cd ios
3042 if [ ! -f ".iblinter.yml" ]; then
31- curl -L https://raw.githubusercontent.com/4d-for-ios /check-workflow/master/form/quality/.iblinter.yml --output .iblinter.yml
43+ curl -L https://raw.githubusercontent.com/4d-for-mobile /check-workflow/master/form/quality/.iblinter.yml --output .iblinter.yml
3244 fi
3345 iblinter lint
3446 - name : ⚙️ Install jsonlint
@@ -41,12 +53,13 @@ jobs:
4153 name : 🏗 build
4254 runs-on : macos-latest
4355 env :
44- RELEASE_REPO : " https://raw.githubusercontent.com/4d-for-ios /check-workflow/master"
56+ RELEASE_REPO : " https://raw.githubusercontent.com/4d-for-mobile /check-workflow/master"
4557 steps :
4658 - name : ⬇️ Checkout
4759 uses : actions/checkout@master
4860 with :
4961 fetch-depth : 1
50- - name : 👷 Swift build
62+ - name : 👷 iOS build
5163 run : |
64+ cd ios
5265 curl -fsSL $RELEASE_REPO/form/scripts/swift_build.sh | bash -s
0 commit comments