-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
57 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Main | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: "Main" | ||
|
||
jobs: | ||
test-and-gather-test-coverage: | ||
runs-on: macos-latest | ||
timeout-minutes: 30 | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Install Slather | ||
run: sudo gem install slather | ||
- name: Select Xcode version | ||
run: sudo xcode-select -s /Applications/Xcode_15.4.app | ||
- name: Build & Tests | ||
run: | | ||
xcodebuild clean build test \ | ||
-scheme HUDHero \ | ||
-sdk iphonesimulator17.5 \ | ||
-destination "OS=17.5,name=iPhone 15 Pro" \ | ||
ONLY_ACTIVE_ARCH=YES \ | ||
-resultBundlePath HUDHero.xcresult | ||
-derivedDataPath /tmp/DerivedDataWithCoverageForiOS \ | ||
- name: Test & publish code coverage | ||
uses: paambaati/codeclimate-action@v3.2.0 | ||
env: | ||
CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}" | ||
with: | ||
debug: true | ||
coverageCommand: | | ||
slather coverage -x --scheme "HUDHero" --output-directory "slather_reports/HUDHero_iOS" -b "/tmp/DerivedDataWithCoverageForiOS" | ||
coverageLocations: | | ||
${{ github.workspace }}/slather_reports/HUDHero_iOS/cobertura.xml:cobertura |