클러스터 커스텀 이미지 설정 기능 및 클러스터 마케에 캡션 설정 기능 추가 #426
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
# - name: Cache Gradle | |
# uses: actions/cache@v4 | |
# with: | |
# path: | | |
# ~/.gradle/wrapper | |
# ~/.gradle/caches | |
# key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }}-lint | |
# restore-keys: | | |
# ${{ runner.os }}-gradle-${{matrix.arch}}-lint- | |
- name: Install ktlint | |
run: | | |
curl -sSLO https://github.com/pinterest/ktlint/releases/download/1.2.1/ktlint | |
chmod a+x ktlint | |
sudo mv ktlint /usr/local/bin/ | |
- name: Check | |
run: yarn run t | |
# test: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# | |
# - name: Setup | |
# uses: ./.github/actions/setup | |
# | |
# - name: Run unit tests | |
# run: yarn test --maxWorkers=2 --coverage | |
# build-library: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v3 | |
# | |
# - name: Setup | |
# uses: ./.github/actions/setup | |
# | |
# - name: Build package | |
# run: yarn prepare | |
build-android: | |
runs-on: ubuntu-latest | |
env: | |
TURBO_CACHE_DIR: .turbo/android | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Set Android Home | |
run: echo "sdk.dir=$ANDROID_HOME" > example/android/local.properties | |
- name: Cache turborepo for Android | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.TURBO_CACHE_DIR }} | |
key: ${{ runner.os }}-turborepo-android-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-turborepo-android- | |
- name: Check turborepo cache for Android | |
run: | | |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run ci:android --single-package --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'ci:android').cache.status") | |
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then | |
echo "turbo_cache_hit=1" >> $GITHUB_ENV | |
fi | |
- name: Install JDK | |
uses: actions/setup-java@v3 | |
with: | |
distribution: "zulu" | |
java-version: "17" | |
- name: Setup Android SDK | |
uses: android-actions/setup-android@v3 | |
- name: Display ANDROID_HOME | |
run: echo $ANDROID_HOME | |
- name: Cache Gradle | |
if: env.turbo_cache_hit != 1 | |
uses: actions/cache@v4 | |
with: | |
path: | | |
~/.gradle/wrapper | |
~/.gradle/caches | |
key: ${{ runner.os }}-gradle-${{ hashFiles('example/android/gradle/wrapper/gradle-wrapper.properties') }} | |
restore-keys: | | |
${{ runner.os }}-gradle- | |
- name: Build example for Android | |
env: | |
JAVA_OPTS: "-XX:MaxHeapSize=6g" | |
run: yarn turbo:android | |
build-ios: | |
runs-on: macos-latest | |
env: | |
TURBO_CACHE_DIR: .turbo/ios | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: ./.github/actions/setup | |
- name: Cache turborepo for iOS | |
uses: actions/cache@v4 | |
with: | |
path: ${{ env.TURBO_CACHE_DIR }} | |
key: ${{ runner.os }}-turborepo-ios-${{ hashFiles('yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-turborepo-ios- | |
- name: Check turborepo cache for iOS | |
run: | | |
TURBO_CACHE_STATUS=$(node -p "($(yarn turbo run ci:ios --single-package --cache-dir="${{ env.TURBO_CACHE_DIR }}" --dry=json)).tasks.find(t => t.task === 'ci:ios').cache.status") | |
if [[ $TURBO_CACHE_STATUS == "HIT" ]]; then | |
echo "turbo_cache_hit=1" >> $GITHUB_ENV | |
fi | |
- name: Cache cocoapods | |
if: env.turbo_cache_hit != 1 | |
id: cocoapods-cache | |
uses: actions/cache@v4 | |
with: | |
path: | | |
**/ios/Pods | |
example/ios/build/generated/ios | |
key: ${{ runner.os }}-cocoapods-${{ hashFiles('example/ios/Podfile.lock') }}-noop | |
restore-keys: | | |
${{ runner.os }}-cocoapods- | |
- name: Install pod for codegen stuffs | |
run: yarn pod:update | |
- name: Build example for iOS | |
run: yarn turbo:ios |