This repository has been archived by the owner on Dec 7, 2024. It is now read-only.
:: [#210] tuist 버전 업그레이드 #164
This file contains 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: [ "master" ] | |
pull_request: | |
branches: [ "*" ] | |
env: | |
CACHED_DEPENDENCY_PATHS: ${{ github.workspace }}/Tuist/Dependencies | |
jobs: | |
prepare-dependency: | |
name: ⚙️ prepare for CI | |
runs-on: macos-14 | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jdx/mise-action@v2 | |
with: | |
xcode-version: 15.2 | |
- name: Install Tuist | |
run: mise install tuist | |
- name: Compute dependency cache key | |
id: compute_hash | |
run: echo "hash=${{ hashFiles('Tuist/Package.swift') }}" >> $GITHUB_OUTPUT | |
- name: Check dependency cache | |
uses: actions/cache@v3 | |
id: cache_dependencies | |
with: | |
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | |
key: ${{ steps.compute_hash.outputs.hash }} | |
- name: Install dependencies | |
if: steps.cache_dependencies.outputs.cache-hit == '' | |
run: tuist install | |
outputs: | |
dependency_cache_key: ${{ steps.compute_hash.outputs.hash }} | |
build: | |
name: 🏢 Build | |
env: | |
ENCRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist.gpg' }} | |
DECRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist' }} | |
GPLIST_PW: ${{ secrets.GOOGLE_SERVICE_ENCRYPTO_PW }} | |
runs-on: macos-14 | |
needs: prepare-dependency | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
xcode-version: 15.2 | |
- uses: jdx/mise-action@v2 | |
- name: install tuist | |
run: mise install tuist | |
- name: configure GoogleService-Info.plist | |
run: | | |
gpg --pinentry-mode=loopback --passphrase "$GPLIST_PW" -d -o "$DECRYPTED_GPLIST_FILE_PATH" "$ENCRYPTED_GPLIST_FILE_PATH" | |
- name: Check dependency cache | |
uses: actions/cache@v3 | |
id: cache_dependencies | |
with: | |
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | |
key: ${{ needs.prepare-dependency.outputs.dependency_cache_key }} | |
- name: Install dependencies | |
if: steps.cache_dependencies.outputs.cache-hit != 'true' | |
run: tuist install | |
- name: build tuist | |
run: TUIST_CI=1 tuist build | |
test: | |
name: 🧪 Test | |
env: | |
ENCRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist.gpg' }} | |
DECRYPTED_GPLIST_FILE_PATH: ${{ 'iOS/Resources/GoogleService-Info.plist' }} | |
GPLIST_PW: ${{ secrets.GOOGLE_SERVICE_ENCRYPTO_PW }} | |
runs-on: macos-14 | |
needs: prepare-dependency | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: jdx/mise-action@v2 | |
with: | |
xcode-version: 15.2 | |
- name: install tuist | |
run: mise install tuist | |
- name: configure GoogleService-Info.plist | |
run: | | |
gpg --pinentry-mode=loopback --passphrase "$GPLIST_PW" -d -o "$DECRYPTED_GPLIST_FILE_PATH" "$ENCRYPTED_GPLIST_FILE_PATH" | |
- name: Check dependency cache | |
uses: actions/cache@v3 | |
id: cache_dependencies | |
with: | |
path: ${{ env.CACHED_DEPENDENCY_PATHS }} | |
key: ${{ needs.prepare-dependency.outputs.dependency_cache_key }} | |
- name: Install dependencies | |
if: steps.cache_dependencies.outputs.cache-hit != 'true' | |
run: tuist install | |
- name: test tuist | |
run: TUIST_CI=1 tuist test --no-selective-testing |