Skip to content

Commit

Permalink
move to makefile, fix build/test/slather sequence
Browse files Browse the repository at this point in the history
  • Loading branch information
armcknight committed Apr 4, 2024
1 parent 944a4ec commit 8e9deb1
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
run: gem install slather

- name: Build and Test
run: xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Debug -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet test | slather coverage --configuration Debug && exit ${PIPESTATUS[0]}
run: make test

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
.env
build/
release-build.log
EmpowerPlant_release.zip
EmpowerPlant_release.zip
slather/
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,8 @@ init:
# download iOS platform image
# (happens on fresh xcode installation or MAS-managed major version update)
xcodebuild -downloadPlatform iOS

.PHONY: test
test:
xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Debug -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet build-for-testing
xcodebuild -project EmpowerPlant.xcodeproj -scheme EmpowerPlant -configuration Debug -derivedDataPath build -destination "platform=iOS Simulator,OS=latest,name=iPhone 15" -quiet test-without-building | rbenv exec slather coverage --verbose && exit ${PIPESTATUS[0]}

0 comments on commit 8e9deb1

Please sign in to comment.