Skip to content

Commit

Permalink
Merge pull request #3 from mash-up-kr/feature/테스트-workflow-구현
Browse files Browse the repository at this point in the history
Feature/테스트 workflow 구현
  • Loading branch information
chansooo authored Jun 3, 2024
2 parents a8fbde6 + 3c473a1 commit cfa59b0
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# What is this PR? 🔍

## **이슈**
## 이슈

## **설명**
## 설명


# Changes 📝
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/pullRequest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# .github/workflows/my-project.yml
name: PPAC

on:
pull_request:
branches: [ develop ]

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: Source bashrc
shell: bash -l {0}
run: source ~/.bashrc && mise doctor

- name: Install tuist
shell: bash -l {0}
run: mise install

- name: Install dependencies
shell: bash -l {0}
run: mise exec -- tuist install

- name: Build and Test
shell: bash -l {0}
run: mise exec -- tuist test PPACIOS-Workspace
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@ USER_NAME = $(shell python3 Scripts/author_name.py)
CURRENT_DATE = $(shell pipenv run python Scripts/current_date.py)

bootstrap:
@curl https://mise.run | sh
@echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
@echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile
@source ~/.zshrc
@arch -arm64 brew install pipenv
@arch -arm64 brew install fastlane
@fastlane match development --readonly
@fastlane match appstore --readonly
@mise install
@tuist install
@tuist generate

Expand Down
26 changes: 26 additions & 0 deletions Scripts/onboarding.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#!/bin/bash

# Install mise
curl https://mise.run | sh

# Check mise version
~/.local/bin/mise --version

# Set up mise environment for bash
echo 'eval "$(~/.local/bin/mise activate bash)"' >> ~/.bashrc

# Ensure the mise environment is set up for the current session
eval "$(~/.local/bin/mise activate bash)"

# Set up PATH for mise
echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.bash_profile

# Ensure PATH is set up for the current session
export PATH="$HOME/.local/share/mise/shims:$PATH"

# Uncomment and set up for zsh if needed
# echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
# echo 'export PATH="$HOME/.local/share/mise/shims:$PATH"' >> ~/.zprofile
# if ! grep -q 'eval "$(~/.local/bin/mise activate zsh)"' ~/.zshrc; then
# echo 'eval "$(~/.local/bin/mise activate zsh)"' >> ~/.zshrc
# fi

0 comments on commit cfa59b0

Please sign in to comment.