-
Notifications
You must be signed in to change notification settings - Fork 207
64 lines (61 loc) · 3.01 KB
/
ci.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
name: CI
on: [pull_request, workflow_dispatch]
jobs:
test:
name: Run Unit Tests
runs-on: macos-13
timeout-minutes: 45
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Pod Install
run: |
cd TestSwiftyDropbox
pod install --repo-update
- name: Test iOS
env:
FULL_DROPBOX_API_APP_KEY: ${{ secrets.FULL_DROPBOX_API_APP_KEY }}
FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN: ${{ secrets.FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN }}
FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN: ${{ secrets.FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN }}
TEAM_MEMBER_EMAIL: ${{ secrets.TEAM_MEMBER_EMAIL }}
EMAIL_TO_ADD_AS_TEAM_MEMBER: ${{ secrets.EMAIL_TO_ADD_AS_TEAM_MEMBER }}
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
ACCOUNT_ID_2: ${{ secrets.ACCOUNT_ID_2 }}
ACCOUNT_ID_3: ${{ secrets.ACCOUNT_ID_3 }}
platform: ${{ 'iOS Simulator' }}
device: ${{ 'iPhone 14' }}
run: |
xcodebuild -workspace TestSwiftyDropbox/TestSwiftyDropbox.xcworkspace/ -scheme TestSwiftyDropbox_iOS -sdk iphonesimulator \
-destination "platform=$platform,name=$device" \
FULL_DROPBOX_API_APP_KEY=$FULL_DROPBOX_API_APP_KEY \
FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN=$FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN \
FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN=$FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN \
TEAM_MEMBER_EMAIL=$TEAM_MEMBER_EMAIL \
EMAIL_TO_ADD_AS_TEAM_MEMBER=$EMAIL_TO_ADD_AS_TEAM_MEMBER \
ACCOUNT_ID=$ACCOUNT_ID \
ACCOUNT_ID_2=$ACCOUNT_ID_2 \
ACCOUNT_ID_3=$ACCOUNT_ID_3 \
test
- name: Test macOS
env:
FULL_DROPBOX_API_APP_KEY: ${{ secrets.FULL_DROPBOX_API_APP_KEY }}
FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN: ${{ secrets.FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN }}
FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN: ${{ secrets.FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN }}
TEAM_MEMBER_EMAIL: ${{ secrets.TEAM_MEMBER_EMAIL }}
EMAIL_TO_ADD_AS_TEAM_MEMBER: ${{ secrets.EMAIL_TO_ADD_AS_TEAM_MEMBER }}
ACCOUNT_ID: ${{ secrets.ACCOUNT_ID }}
ACCOUNT_ID_2: ${{ secrets.ACCOUNT_ID_2 }}
ACCOUNT_ID_3: ${{ secrets.ACCOUNT_ID_3 }}
platform: ${{ 'macOS' }}
run: |
xcodebuild -workspace TestSwiftyDropbox/TestSwiftyDropbox.xcworkspace/ -scheme TestSwiftyDropbox_macOS \
-destination "platform=$platform,arch=x86_64" \
FULL_DROPBOX_API_APP_KEY=$FULL_DROPBOX_API_APP_KEY \
FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN=$FULL_DROPBOX_TESTER_TEAM_REFRESH_TOKEN \
FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN=$FULL_DROPBOX_TESTER_USER_REFRESH_TOKEN \
TEAM_MEMBER_EMAIL=$TEAM_MEMBER_EMAIL \
EMAIL_TO_ADD_AS_TEAM_MEMBER=$EMAIL_TO_ADD_AS_TEAM_MEMBER \
ACCOUNT_ID=$ACCOUNT_ID \
ACCOUNT_ID_2=$ACCOUNT_ID_2 \
ACCOUNT_ID_3=$ACCOUNT_ID_3 \
test