-
Notifications
You must be signed in to change notification settings - Fork 8
125 lines (97 loc) · 3.41 KB
/
beta-tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: beta-tests
on:
workflow_dispatch:
inputs:
xcode_version:
required: true
default: latest
os_version:
required: true
default: '17.0'
jobs:
testIOSBeta:
name : TestIOSBeta
# runs-on: will be set to macos-latest when running on actual GHA.
# *** runs-on: ubuntu-latest is used when running via act on mac os. ***
runs-on: macos-latest
steps:
- name: Print version info
run: echo "version=${{ github.event.inputs.xcode_version }}"
- uses: actions/checkout@master
with:
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ github.event.inputs.xcode_version }}
- name: Install lcov
run: brew install lcov
- name: Update gem
run: bundle update
- name: Install gems
run: bundle install
- name: Run tests on iOS (using fastlane)
run: bundle exec fastlane runIOSBetaTests os_version:${{ github.event.inputs.os_version }}
testIOSAppBeta:
name : TestIOSAppBeta
# runs-on: will be set to macos-latest when running on actual GHA.
# *** runs-on: ubuntu-latest is used when running via act on mac os. ***
runs-on: macos-latest
steps:
- uses: actions/checkout@master
with:
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ github.event.inputs.xcode_version }}
- name: Install lcov
run: brew install lcov
- name: Update gem
run: bundle update
- name: Install gems
run: bundle install
- name: Run script to add New Relic API Key
run: bundle exec fastlane addAPIKeyToPlist valueToAdd:${{ secrets.NEWRELIC_API_KEY }}
- name: Run app tests on iOS (using fastlane)
run: bundle exec fastlane runIOSAppBetaTests os_version:${{ github.event.inputs.os_version }}
testTVOSBeta:
name : TestTVOSBeta
# runs-on: will be set to macos-latest when running on actual GHA.
# *** runs-on: ubuntu-latest is used when running via act on mac os. ***
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ github.event.inputs.xcode_version }}
- name: Install lcov
run: brew install lcov
- name: Update gem
run: bundle update
- name: Install gems
run: bundle install
- name: Run tests on tvOS (using fastlane)
run: bundle exec fastlane runTVOSBetaTests os_version:${{ github.event.inputs.os_version }}
testTVOSAppBeta:
name : TestTVOSAppBeta
# runs-on: will be set to macos-latest when running on actual GHA.
# *** runs-on: ubuntu-latest is used when running via act on mac os. ***
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: ${{ github.event.inputs.xcode_version }}
- name: Install lcov
run: brew install lcov
- name: Update gem
run: bundle update
- name: Install gems
run: bundle install
- name: Run script to add New Relic API Key
run: bundle exec fastlane addAPIKeyToPlist valueToAdd:${{ secrets.NEWRELIC_API_KEY }}
- name: Run app tests on tvOS (using fastlane)
run: bundle exec fastlane runTVOSAppBetaTests os_version:${{ github.event.inputs.os_version }}