@@ -3,13 +3,17 @@ name: CI Build
3
3
# Run for any commits to any branch
4
4
on : [push, pull_request]
5
5
6
-
7
6
env :
8
7
LANG : en_US.UTF-8
9
8
# CodeClimate
10
9
CC_TEST_REPORTER_ID : ${{ secrets.CC_TEST_REPORTER_ID }}
11
10
# Notifications
12
11
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_URL }}
12
+ FOLDER : GoogleFirebase
13
+ AWS_REGION : us-east-1
14
+ AWS_ACCESS_KEY_ID : ${{ secrets.AWS_ACCESS_KEY_ID }}
15
+ AWS_SECRET_ACCESS_KEY : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
16
+ BUILDS_BUCKET : ${{ secrets.AWS_S3_BUILDS_BUCKET }}
13
17
14
18
jobs :
15
19
@@ -29,11 +33,31 @@ jobs:
29
33
chmod +x ./cc-test-reporter
30
34
./cc-test-reporter before-build
31
35
32
- # Executes pod install and runs test against Debug target
33
- - name : Run tests
34
-
36
+ # Executes pod install
37
+ - name : Installing Dependencies
38
+ run : pod install --repo-update
39
+
40
+ # Downloads Firebase files
41
+ - name : Downloading Google Firebase plist files
42
+ run : aws s3 cp s3://$BUILDS_BUCKET/$FOLDER/ ios-base/Resources/$FOLDER/ --recursive
43
+ # uses: keithweaver/[email protected]
44
+ # with:
45
+ # command: cp
46
+ # source: s3://${{ secrets.BUILDS_BUCKET }}/ios-base/GoogleService-Info.plist
47
+ # destination: "ios-base/Resources/GoogleService-Info.plist"
48
+ # aws_access_key_id: ${{ secrets.AWS_ACCESS_KEY_ID }}
49
+ # aws_secret_access_key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50
+ # aws_region: us-east-1
51
+
52
+ # Runs test on the develop scheme
53
+ - name : Running Test Suite
54
+ uses : mxcl/xcodebuild@v1
35
55
with :
36
- lane : debug_develop
56
+ platform : iOS
57
+ use_modern_build_system : true
58
+ code-coverage : true
59
+ scheme : ios-base-develop
60
+ configuration : Debug # no default, ie. `xcodebuild` decides itself
37
61
38
62
- name : Send test coverage report
39
63
run : ./cc-test-reporter after-build
44
68
status : ${{ job.status }}
45
69
text : ' ios-base build status is ${{ job.status }}'
46
70
fields : repo,message,commit,author,action,eventName,ref,workflow,job,took
47
- if : always()
71
+ if : always()
0 commit comments