Skip to content

Add compatibility_tests CI #18

Add compatibility_tests CI

Add compatibility_tests CI #18

Workflow file for this run

name: iOS
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
ios_test:
name: Execute tests on iOS
strategy:
fail-fast: false
matrix:
include:
- os: macos-13
xcode-version: "15.1" # Swift 5.9.2
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Setup Xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ matrix.xcode-version }}
- name: Swift version
run: swift --version
- name: Build in release mode
run: |
xcodebuild build \
-scheme OpenSwiftUI \
-configuration Debug \
-destination "platform=iOS-Simulator" \
-derivedDataPath .build-test-debug
# OpenSwiftUI-Package is not listed currently
# OTHER_SWIFT_FLAGS="-warnings-as-errors" \ AccessLevelOnImport will cause build warning via xcodebuild
env:
OPENSWIFTUI_ATTRIBUTEGRAPH: 0
# Test is currently not supported due to the link issue to PrivateFramework
# - name: Build and run tests in debug mode with coverage
# run: |
# xcodebuild test \
# -scheme OpenSwiftUI-Package \
# -configuration Debug \
# -destination "platform=iOS-Simulator" \
# -enableCodeCoverage=YES \
# -derivedDataPath .build-test-debug
# # OTHER_SWIFT_FLAGS="-warnings-as-errors"
# profdata_file_path=$(find . -path "*.build-test-debug/Build/ProfileData*Coverage.profdata" -type f)
# xcrun llvm-cov show \
# -instr-profile=$profdata_file_path \
# .build-test-debug/Build/Products/Debug/OpenSwiftUITests.xctest/Contents/MacOS/OpenSwiftUITests \
# > coverage.txt