Skip to content

[IDLE-35] 프로젝트 CI구축(test project when merge to develop) #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jun 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions .github/workflows/merge_to_develop_on_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: PR to [develop]
on:
pull_request:
branches: [ develop ]

#1. load mise
#2. cache tuist
#3. install tuist
#4. checkout tuist project repository
#5. fetch XCConfig from repository
#6. test tuist project

jobs:
test:
runs-on: macos-latest
env:
TUIST_VERSION: 4.12.1
steps:

#1. load mise
- uses: jdx/mise-action@v2

#2. cache tuist
- name: cache tuist
id: cache-tuist
uses: actions/cache@v4
with:
path: /Users/runner/.local/share/mise/shims/tuist
key: ${{ runner.os }}-tuist@${{ env.TUIST_VERSION }}

#3. install tuist
- name: install tuist
if: steps.cache-tuist.outputs.cache-hit != 'true'
run: |
mise install tuist@${{ env.TUIST_VERSION }}
mise use -g tuist@${{ env.TUIST_VERSION }}

- name: install tree
run: brew install tree

- name: check paths
run: |
echo "tuist in installed in $(which tuist)"
echo "tree in installed in $(which tree)"

#4. checkout tuist project repository
- name: checkout project
uses: actions/checkout@v4

#5. fetch XCConfig from repository
- name: fetch xcconfig
uses: actions/checkout@v4
with:
repository: ${{ secrets.XCCONFIG_REPO }}
token: ${{ secrets.XCCONFIG_REPO_TOKEN }}
path: '${{ github.workspace }}/project/XcodeConfiguration'

- name: check xcconfig files
run: |
echo "Checking configurations are loaded..."
tree ${{ github.workspace }}/project/XcodeConfiguration

#6. test tuist project
- name: Test project
run: |
cd project
tuist install
tuist test




1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

# Ignore all xcconfig files in all directories
**/*.xcconfig
XcodeConfiguration/

# Ignore Derived
**/Derived/
Expand Down