-
-
Notifications
You must be signed in to change notification settings - Fork 26
28 lines (26 loc) · 959 Bytes
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: Build & Test
on:
workflow_dispatch:
pull_request:
types: [opened, reopened, synchronize]
push:
branches:
- main
jobs:
build:
runs-on: self-hosted
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 14,OS=16.4' build test | xcpretty
- name: Codecov
uses: codecov/[email protected]
with:
xcode: true
xcode_archive_path: './scripts/TestResult.xcresult'