Skip to content

Commit ae24e3c

Browse files
committed
🤖 Update CI for android
1 parent 9b623fc commit ae24e3c

File tree

2 files changed

+23
-10
lines changed

2 files changed

+23
-10
lines changed

.github/workflows/check.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Publish
88
runs-on: macos-latest
99
env:
10-
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/form/scripts"
10+
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-mobile/check-workflow/master/form/scripts"
1111
steps:
1212
- name: ⬇️ Checkout
1313
uses: actions/checkout@master
@@ -21,4 +21,4 @@ jobs:
2121
run: |
2222
curl -fsSL $RELEASE_REPO/release_upload.sh | bash -s $GITHUB_EVENT_PATH $GITHUB_TOKEN
2323
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)