-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 938 Bytes
/
test.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
name: Test
on:
workflow_dispatch:
push:
paths-ignore:
- README.md
- .gitignore
branches-ignore:
- "main"
jobs:
run-test:
name: Run Test
runs-on: macos-14
timeout-minutes: 15
env:
DEVELOPER_DIR: "/Applications/Xcode_15.4.app/Contents/Developer"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Show Xcode version
run: xcodebuild -version
- name: Run Test
run: |
xcodebuild test \
-scheme xcstrings-migrator-Package \
-destination "platform=macOS,arch=arm64" \
-resultBundlePath TestResults/result_bundle | \
xcpretty -c && exit ${PIPESTATUS[0]}
- name: Archive test results
if: success() || failure()
uses: kishikawakatsumi/[email protected]
with:
path: TestResults/result_bundle.xcresult
show-passed-tests: false