Skip to content

👷 Updated workflows #1

👷 Updated workflows

👷 Updated workflows #1

Workflow file for this run

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