chore: 🤖 remove snapshot testing (#600) #2035
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-11, macos-12] | |
xcode: ['Xcode_14.0'] | |
exclude: | |
- os: macos-11 | |
xcode: 'Xcode_14.0' | |
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 11' clean build test | xcpretty | |
- name: Create code coverage report | |
if: matrix.xcode == 'Xcode_14.0' | |
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 | |
if: matrix.xcode == 'Xcode_14.0' | |
uses: actions/upload-artifact@v1 | |
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@v1 | |
with: | |
name: coverage | |
- name: Scan | |
uses: sonarsource/sonarcloud-github-action@master | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SONAR_TOKEN: ${{ secrets.SONARCLOUD_TOKEN }} | |
build_watch: | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run tests on Apple Watch simulator | |
run: set -o pipefail && make test_watch |