-
Notifications
You must be signed in to change notification settings - Fork 202
41 lines (31 loc) · 949 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
41
name: Run Tests
on:
pull_request:
workflow_dispatch:
jobs:
test:
runs-on: macOS-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Ruby
uses: ruby/setup-ruby@v1
- name: Install xcpretty
run: gem install xcpretty
- name: Setup Xcode Simulator
run: |
xcode-select -p
xcrun xcodebuild -version
xcrun simctl list runtimes
xcrun simctl list devicetypes
xcrun simctl delete all
CURRENT_SIMULATOR_UUID=$(xcrun simctl create TestDevice "iPhone 12")
echo "CURRENT_SIMULATOR_UUID=$CURRENT_SIMULATOR_UUID" >> $GITHUB_ENV
- name: Test Buy
run: ./Scripts/test_buy
- name: Test Buy TV
run: ./Scripts/test_buy_tv
- name: Test Buy Watch
run: ./Scripts/test_buy_watch
- name: Test Swift Package
run: swift test 2>&1 | xcpretty