Skip to content

Commit

Permalink
⚡ CI개선
Browse files Browse the repository at this point in the history
  • Loading branch information
yongbeomkwak committed Jun 17, 2024
1 parent 1e648b8 commit f8c4431
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,9 @@ jobs:
echo "${{ secrets.GOOGLE_INFO_PLIST }}" > ${{ env.GOOGLE_SERVICE_INFO_PLIST_PATH }}
- name: Generate NeedleGenerated.swift
run: sh Scripts/NeedleRunScript.sh
run: |
sh Scripts/NeedleRunScript.sh ci
echo finish NeedleRunScript
- name: Test with tuist
run: make test
11 changes: 9 additions & 2 deletions Scripts/NeedleRunScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,16 @@ fi
export PATH

if which needle > /dev/null; then

ROOT_PATH="Projects/App"
touch "${ROOT_PATH}/Sources/Application/NeedleGenerated.swift"
needle generate ${ROOT_PATH}/Sources/Application/NeedleGenerated.swift ../

if [ $# -eq 0 ]; then #로컬
needle generate Sources/Application/NeedleGenerated.swift ../
else #ci
touch "${ROOT_PATH}/Sources/Application/NeedleGenerated.swift"
needle generate ${ROOT_PATH}/Sources/Application/NeedleGenerated.swift ../
fi

else
echo "warning: Needle not installed, plz run 'brew install needle'"
fi

0 comments on commit f8c4431

Please sign in to comment.