[Chore] update uitesting env #111
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 & Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, reopened, synchronize] | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: macos-13 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: macOS build and test | |
run: | | |
set -o pipefail | |
xcodebuild test -workspace ZMarkupParser.xcworkspace -testPlan UnitTest -scheme ZMarkupParser -destination 'platform=macOS' build test | xcpretty | |
- name: iOS build and test | |
run: | | |
set -o pipefail | |
xcodebuild test -workspace ZMarkupParser.xcworkspace -testPlan ZMarkupParser -scheme ZMarkupParser -enableCodeCoverage YES -resultBundlePath './scripts/TestResult.xcresult' -destination 'platform=iOS Simulator,name=iPhone 15,OS=17.0.1' build test | xcpretty | |
- name: Codecov | |
uses: codecov/codecov-action@v3.1.1 | |
with: | |
xcode: true | |
xcode_archive_path: './scripts/TestResult.xcresult' |