-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (37 loc) · 1.26 KB
/
ios_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
42
43
44
name: iOS Tests CI
on:
pull_request:
branches: [ main ]
push:
branches: [ main ]
jobs:
iOS:
runs-on: macos-latest
if: contains(github.event.head_commit.message, 'trigger build')
steps:
# Code checkout
- name: Checkout code
id: checkout_code
uses: actions/checkout@v4
- name: Job set up
uses: ./.github/actions/job-set-up
# Copy secrets
- name: Copy secrets
id: copy_secrets
shell: bash
env:
API_READ_ACCESS_TOKEN: ${{ secrets.API_READ_ACCESS_TOKEN }}
DB_ENCRYPTION_PASS: ${{ secrets.DB_ENCRYPTION_PASS }}
run: |
touch ./local.properties
echo api_read_access_token=\"$API_READ_ACCESS_TOKEN\" >> ./local.properties
echo db_encryption_pass=\"$DB_ENCRYPTION_PASS\" >> ./local.properties
cat ./local.properties
- name: iOS set up
uses: ./.github/actions/ios-set-up
- run: xcodebuild build test -workspace iosApp/iosApp.xcworkspace -configuration Debug -scheme iosApp -sdk iphoneos -destination name='iPhone 14' -verbose
# - name: Upload logs
# if: always()
# uses: actions/upload-artifact@v3
# with:
# path: "/Users/runner/Library/Developer/Xcode/DerivedData/*"