chore: 🤖 [JIRA:HCPSDKFIORIUIKIT-2827]cleanup warning #3113
Workflow file for this run
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
name: CI | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-13] | |
xcode: ['Xcode_15.0.1'] | |
runs-on: ${{ matrix.os }} | |
env: | |
DEVELOPER_DIR: /Applications/${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Build and Test | |
run: set -o pipefail && xcodebuild -enableCodeCoverage YES -scheme FioriSwiftUI-Package -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone 15' clean build test | xcpretty | |
- name: Create code coverage report | |
run: ./scripts/xccov-to-sonarqube-generic.sh /Users/runner/Library/Developer/Xcode/DerivedData/cloud-sdk-ios-fiori*/Logs/Test/*.xcresult/ > sonarqube-generic-coverage.xml | |
- name: Store coverage for sonar job | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage | |
path: sonarqube-generic-coverage.xml | |
sonar: | |
needs: build | |
if: github.event_name == 'push' && github.event.pull_request.head.repo.full_name != github.repository | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Get coverage from build job | |
uses: actions/download-artifact@v4 | |
with: | |
name: coverage | |
- name: Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |
build_watch: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-13] | |
xcode: ['Xcode_15.0.1'] | |
runs-on: ${{ matrix.os }} | |
env: | |
DEVELOPER_DIR: /Applications/${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests on Apple Watch simulator | |
run: set -o pipefail && make test_watch | |
build_vision: | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [macos-14] | |
xcode: ['Xcode_15.3'] | |
runs-on: ${{ matrix.os }} | |
env: | |
DEVELOPER_DIR: /Applications/${{ matrix.xcode }}.app/Contents/Developer | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests on Vision OS simulator | |
run: set -o pipefail && make test_vision |