Skip to content

Commit 31e9d84

Browse files
committed
Run test suit on Github Actions
1 parent 3edffd1 commit 31e9d84

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,17 @@ name: CI Build
33
# Run for any commits to any branch
44
on: [push, pull_request]
55

6-
76
env:
87
LANG: en_US.UTF-8
98
# CodeClimate
109
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
1110
# Notifications
1211
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 }}
1317

1418
jobs:
1519

@@ -29,11 +33,31 @@ jobs:
2933
chmod +x ./cc-test-reporter
3034
./cc-test-reporter before-build
3135
32-
# Executes pod install and runs test against Debug target
33-
- name: Run tests
34-
uses: maierj/[email protected]
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
3555
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
3761

3862
- name: Send test coverage report
3963
run: ./cc-test-reporter after-build
@@ -44,4 +68,4 @@ jobs:
4468
status: ${{ job.status }}
4569
text: 'ios-base build status is ${{ job.status }}'
4670
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
47-
if: always()
71+
if: always()

0 commit comments

Comments
 (0)