Merge pull request #25 from maxxfrazer/vision-touches #138
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: build | |
on: | |
push: | |
branches: | |
- "main" | |
tags: | |
- '*' | |
pull_request: | |
branches: | |
- "*" | |
jobs: | |
build: | |
runs-on: macOS-13 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Switch Xcode 🔄 | |
run: sudo xcode-select --switch /Applications/Xcode_15.0.app | |
- name: Swift Lint | |
run: swiftlint --strict | |
- name: Test iOS | |
run: xcodebuild test -scheme RealityUI -destination "platform=iOS Simulator,name=iPhone 15" -enableCodeCoverage YES | |
- name: Fetch Coverage | |
uses: sersoft-gmbh/swift-coverage-action@v4 | |
id: coverage-files | |
- name: Publish Coverage to Codecov | |
uses: codecov/codecov-action@v3 | |
with: | |
files: ${{ join(fromJSON(steps.coverage-files.outputs.files), ',') }} | |
- name: Test macOS | |
run: xcodebuild test -scheme RealityUI -destination "platform=macOS" -enableCodeCoverage YES |