Skip to content

Commit

Permalink
infra: pr workflow 동작 확인
Browse files Browse the repository at this point in the history
  • Loading branch information
chansooo committed Jun 2, 2024
1 parent a8fbde6 commit 8e6fbaf
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# .github/workflows/my-project.yml
name: PPAC

on:
push:
branches: [ feature/테스트-workflow-구현 ]
pull_request:
branches: [ feature/테스트-workflow-구현 ]

jobs:
build:
name: test action
runs-on: macos-13
steps:
- uses: actions/checkout@v3

- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '15.4'

- name: Access Available
run: chmod +x Scripts/onboarding.sh

- name: Install Setup Script and Fetch Dependencies
run: ./Scripts/onboarding.sh

- name: Install dependencies
run: tuist install

- name: Build and Test
run: tuist test PPACIOS-Workspace

2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ USER_NAME = $(shell python3 Scripts/author_name.py)
CURRENT_DATE = $(shell pipenv run python Scripts/current_date.py)

bootstrap:
@curl https://mise.run | sh
// TODO: - mise 활성화 설정
@arch -arm64 brew install pipenv
@arch -arm64 brew install fastlane
@fastlane match development --readonly
Expand Down
14 changes: 14 additions & 0 deletions Scripts/onboarding.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
if ! command -v brew &> /dev/null; then
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
fi


if ! command -v mise &> /dev/null; then
echo "\n[7] > Installing mise ...\n"
curl https://mise.run | sh
fi

if ! grep -q 'eval "$(~/.local/bin/mise activate zsh)"' ~/.zshrc; then
echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
fi

0 comments on commit 8e6fbaf

Please sign in to comment.