Skip to content

Commit eac7729

Browse files
committed
Create test.yml
1 parent dae6e7d commit eac7729

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Test
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- "*.*.*"
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
test:
15+
name: Test
16+
runs-on: macos-15
17+
timeout-minutes: 30
18+
env:
19+
DEVELOPER_DIR: "/Applications/Xcode_16.3.app/Contents/Developer"
20+
21+
steps:
22+
- name: Checkout
23+
uses: actions/checkout@v4
24+
25+
- name: Show Xcode Version
26+
run: xcodebuild -version
27+
28+
- name: Run Unit Tests
29+
run: |
30+
xcodebuild test \
31+
-scheme CybozuUserAPI \
32+
-destination "platform=macOS,arch=arm64" \
33+
-derivedDataPath DerivedData \
34+
-resultBundlePath TestResults/result_bundle | \
35+
xcbeautify && exit ${PIPESTATUS[0]}

0 commit comments

Comments
 (0)