Skip to content

Commit

Permalink
🤖 Update CI for android
Browse files Browse the repository at this point in the history
  • Loading branch information
e-marchand committed Mar 11, 2021
1 parent 64550d6 commit b870f28
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,36 @@ jobs:
fetch-depth: 1
- name: ⚙️ Install swiftlint
run: |
brew install swiftlint
if [ -z "$(which swiftlint)" ]; then
brew install swiftlint
else
swiftlint version
fi
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
- name: 🧹 Code Lint
- name: 🧹 iOS Code Lint
run: |
cd ios
if [ ! -f ".swiftlint.yml" ]; then
curl -L https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/form/quality/.swiftlint.yml --output .swiftlint.yml
curl -L https://raw.githubusercontent.com/4d-for-mobile/check-workflow/master/form/quality/.swiftlint.yml --output .swiftlint.yml
fi
swiftlint --strict
- name: ⚙️ Install iblinter
run: |
brew install IBDecodable/homebrew-tap/iblinter
set -x
if [ -z "$(which iblinter)" ]; then
brew install iblinter
else
iblinter version
fi
exit 0
env:
HOMEBREW_NO_INSTALL_CLEANUP: 1
- name: 🧹 Storyboard Lint
- name: 🧹 iOS Storyboard Lint
run: |
cd ios
if [ ! -f ".iblinter.yml" ]; then
curl -L https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/form/quality/.iblinter.yml --output .iblinter.yml
curl -L https://raw.githubusercontent.com/4d-for-mobile/check-workflow/master/form/quality/.iblinter.yml --output .iblinter.yml
fi
iblinter lint
- name: ⚙️ Install jsonlint
Expand All @@ -41,12 +53,13 @@ jobs:
name: 🏗 build
runs-on: macos-latest
env:
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-ios/check-workflow/master"
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-mobile/check-workflow/master"
steps:
- name: ⬇️ Checkout
uses: actions/checkout@master
with:
fetch-depth: 1
- name: 👷 Swift build
- name: 👷 iOS build
run: |
cd ios
curl -fsSL $RELEASE_REPO/form/scripts/swift_build.sh | bash -s
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Publish
runs-on: macos-latest
env:
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-ios/check-workflow/master/form/scripts"
RELEASE_REPO: "https://raw.githubusercontent.com/4d-for-mobile/check-workflow/master/form/scripts"
steps:
- name: ⬇️ Checkout
uses: actions/checkout@master
Expand All @@ -21,4 +21,4 @@ jobs:
run: |
curl -fsSL $RELEASE_REPO/release_upload.sh | bash -s $GITHUB_EVENT_PATH $GITHUB_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b870f28

Please sign in to comment.