Skip to content
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

๐Ÿ”€ :: (#615) ๋‹ˆ๋“ค๊ด€๋ จ ์ปจํ”Œ๋ฆญํŠธ๋ฅผ ํ•ด๊ฒฐํ•ด์š” #617

Merged
merged 6 commits into from
Jun 17, 2024
8 changes: 7 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ jobs:
outputs:
package_dependency_cache_key: ${{ steps.compute_package_hash.outputs.package_hash }}
carthage_dependency_cache_key: ${{ steps.compute_carthage_hash.outputs.carthage_hash }}

test:
name: ๐Ÿงช Test
runs-on: macos-14
Expand Down Expand Up @@ -103,6 +103,9 @@ jobs:
path: ${{ env.CACHED_CARTHAGE_DEPENDENCY_PATHS }}
key: ${{ needs.prepare-ci.outputs.carthage_dependency_cache_key }}

- name: Install needle
run: brew install needle

- name: Install dependencies needs
if: steps.cache_package_dependencies.outputs.cache-hit != 'true' || steps.cache_carthage_dependencies.outputs.cache-hit != 'true'
run: make install
Expand All @@ -118,5 +121,8 @@ jobs:
touch ${{ env.GOOGLE_SERVICE_INFO_PLIST_PATH }}
echo "${{ secrets.GOOGLE_INFO_PLIST }}" > ${{ env.GOOGLE_SERVICE_INFO_PLIST_PATH }}

- name: Generate NeedleGenerated.swift
run: sh Scripts/NeedleRunScript.sh

- name: Test with tuist
run: make test
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -111,3 +111,6 @@ amplifytools.xcconfig

### Google
GoogleService-Info.plist

### Needle
Projects/App/Sources/Application/NeedleGenerated.swift
6 changes: 4 additions & 2 deletions Scripts/NeedleRunScript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ fi
export PATH

if which needle > /dev/null; then
needle generate Sources/Application/NeedleGenerated.swift ../
ROOT_PATH="Projects/App"
touch "${ROOT_PATH}/Sources/Application/NeedleGenerated.swift"
needle generate ${ROOT_PATH}/Sources/Application/NeedleGenerated.swift ../
else
echo "warning: Needle not installed, plz run 'brew install needle'"
fi
fi
Loading