🔀 :: [#345] 인증제 페이지 제작 #565
Workflow file for this run
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: SMS-IOS-CI | |
on: | |
push: | |
branches: [ "master" ] | |
pull_request: | |
branches: [ "*" ] | |
env: | |
CACHED_DEPENDENCY_PATHS: ${{ github.workspace }}/Tuist/Dependencies | |
jobs: | |
prepare-dependency: | |
name: Prepare-Dependency | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install tuist | |
run: curl -Ls https://install.tuist.io | bash | |
- name: Compute dependency cache key | |
id: compute_hash | |
run: echo "hash=${{ hashFiles('Tuist/Dependencies.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 != 'true' | |
run: tuist fetch | |
outputs: | |
dependency_cache_key: ${{ steps.compute_hash.outputs.hash }} | |
test: | |
name: Test | |
runs-on: macos-latest | |
needs: prepare-dependency | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
xcode-version: latest | |
- name: Install tuist | |
run: curl -Ls https://install.tuist.io | bash | |
- 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 fetch | |
- name: decrypt master key | |
run: gpg -d -o Tuist/master.key --pinentry-mode=loopback --passphrase "$MASTER_KEY_KEY" Tuist/master.key.gpg | |
env: | |
MASTER_KEY_KEY: ${{ secrets.MASTER_KEY_SECRET }} | |
- name: Test with tuist | |
run: TUIST_ENV=CI tuist test |