-
Notifications
You must be signed in to change notification settings - Fork 16
73 lines (73 loc) · 2.81 KB
/
testingMatrix.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
name: TestingMatrix
on:
push:
branches: [ develop ]
defaults:
run:
working-directory: Example
jobs:
lint:
runs-on: macos-latest
steps:
- uses: actions/checkout@v2
- name: Installing SwiftLint
run: brew install swiftlint
- name: linting
run: swiftlint lint
test-set-one:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
xcode: ['10.3']
destination: ['platform=iOS Simulator,name=iPhone 8 Plus,OS=12.4']
app: ['ConsentViewController_Example', 'NativeMessageExample', 'SourcePointMetaApp']
steps:
- uses: actions/checkout@v2
- name: Set Xcode
run: |
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: App Unit and UI testing
run: xcodebuild test -scheme "${app}" -workspace ConsentViewController.xcworkspace -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
env:
destination: ${{ matrix.destination }}
app: ${{ matrix.app }}
test-set-two:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
xcode: ['11.7']
destination: ['platform=iOS Simulator,name=iPhone 11,OS=13.7']
app: ['ConsentViewController_Example', 'NativeMessageExample', 'SourcePointMetaApp']
steps:
- uses: actions/checkout@v2
- name: Set Xcode
run: |
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: App Unit and UI testing
run: xcodebuild test -scheme "${app}" -workspace ConsentViewController.xcworkspace -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
env:
destination: ${{ matrix.destination }}
app: ${{ matrix.app }}
test-set-three:
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
xcode: ['12.3']
destination: ['platform=iOS Simulator,name=iPhone 12 Pro,OS=14.3']
app: ['ConsentViewController_Example', 'NativeMessageExample', 'SourcePointMetaApp']
steps:
- uses: actions/checkout@v2
- name: Set Xcode
run: |
echo "Choosing Xcode_${{ matrix.xcode }}.app"
sudo xcode-select -s /Applications/Xcode_${{ matrix.xcode }}.app
- name: App Unit and UI testing
run: xcodebuild test -scheme "${app}" -workspace ConsentViewController.xcworkspace -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO CODE_SIGN_ENTITLEMENTS="" CODE_SIGNING_ALLOWED="NO"
env:
destination: ${{ matrix.destination }}
app: ${{ matrix.app }}