forked from cybozu/LicenseList
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (36 loc) · 1.21 KB
/
dispatch-task.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Dispatch Workflow
on:
workflow_dispatch:
jobs:
run-unit-test:
name: Run Unit Test
runs-on: macos-13
timeout-minutes: 30
env:
DEVELOPER_DIR: "/Applications/Xcode_15.0.1.app/Contents/Developer"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Show Xcode Version
run: xcodebuild -version
- name: Run SourcePackagesParserTests
run: |
xcodebuild -scheme spp test \
-only-testing:SourcePackagesParserTests \
-destination "platform=macOS,arch=x86_64" \
-resultBundlePath SourcePackagesParserTests | \
xcpretty -c && exit ${PIPESTATUS[0]}
- name: Run LicenseListTests
run: |
xcodebuild -scheme LicenseList-Package test \
-only-testing:LicenseListTests \
-destination "platform=iOS Simulator,name=iPhone 15,OS=17.0.1" \
-resultBundlePath LicenseListTests | \
xcpretty && exit ${PIPESTATUS[0]}
- name: Archive test results
if: success() || failure()
uses: kishikawakatsumi/xcresulttool@v1
with:
path: |
SourcePackagesParserTests.xcresult
LicenseListTests.xcresult