Skip to content

[Flip Mode] Change: Add Both (Horizontal + Vertical) and None (Do not… #55

[Flip Mode] Change: Add Both (Horizontal + Vertical) and None (Do not…

[Flip Mode] Change: Add Both (Horizontal + Vertical) and None (Do not… #55

Workflow file for this run

name: 'Build and Test'
on:
push:
branches:
- '**'
pull_request:
branches:
- '**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
name: Build and Test
runs-on: macos-13
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Build
shell: bash
run: |
mkdir -p DerivedData/compilation-database
curl -L -O https://sonarcloud.io/static/cpp/build-wrapper-macosx-x86.zip
unzip -o build-wrapper-macosx-x86.zip
build-wrapper-macosx-x86/build-wrapper-macosx-x86 --out-dir DerivedData/compilation-database xcodebuild clean test -project WCPhotoManipulator.xcodeproj -scheme WCPhotoManipulator -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15 Pro' -enableCodeCoverage YES -configuration Debug | xcpretty -c
./xccov-to-sonarqube-generic.sh ~/Library/Developer/Xcode/DerivedData/*/Logs/Test/*.xcresult/ > sonarqube-generic-coverage.xml
- name: Setup sonarqube
uses: warchant/setup-sonar-scanner@v8
- name: Analyze with SonarCloud
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: sonar-scanner
-Dsonar.token=${{ secrets.SONAR_TOKEN }}
-Dsonar.organization=guhungry-github
-Dsonar.host.url=https://sonarcloud.io/