Skip to content

Commit be6b57a

Browse files
committed
build: parallelize ci action
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 329960a commit be6b57a

File tree

1 file changed

+46
-5
lines changed

1 file changed

+46
-5
lines changed

.github/workflows/ci.yml

Lines changed: 46 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,9 @@ env:
1111
JAVA_VERSION: 17
1212

1313
jobs:
14-
unit-tests:
15-
name: Unit tests
14+
code-tests:
15+
name: Run Code Tests
1616
runs-on: ubuntu-latest
17-
timeout-minutes: 60
1817
steps:
1918
- uses: actions/checkout@master
2019

@@ -38,7 +37,7 @@ jobs:
3837
fileName: google-services.json
3938
fileDir: ./app/src
4039
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }}
41-
40+
4241
- name: Setup BugSnag API Key
4342
run: echo BUGSNAG_API_KEY=\"${{ secrets.BUGSNAG_API_KEY }}\" > ./local.properties
4443

@@ -57,5 +56,47 @@ jobs:
5756
- name: Run Code tests
5857
run: bundle exec fastlane android code_tests
5958

60-
- name: Run Flipchat tests
59+
fc-tests:
60+
name: Run Flipchat Tests
61+
runs-on: ubuntu-latest
62+
steps:
63+
- uses: actions/checkout@master
64+
65+
- name: Setup Java env
66+
uses: actions/setup-java@v3
67+
with:
68+
java-version: '17'
69+
distribution: 'corretto'
70+
cache: 'gradle'
71+
72+
- name: Setup Ruby env
73+
uses: ruby/setup-ruby@v1
74+
with:
75+
ruby-version: 2.7.2
76+
bundler-cache: true
77+
78+
- name: Decode Google Services JSON file
79+
uses: timheuer/base64-to-file@v1
80+
id: google_services_json_file
81+
with:
82+
fileName: google-services.json
83+
fileDir: ./flipchatApp/src
84+
encodedString: ${{ secrets.FLIPCHAT_GOOGLE_SERVICES_JSON }}
85+
86+
- name: Setup BugSnag API Key
87+
run: echo BUGSNAG_API_KEY=\"${{ secrets.FLIPCHAT_BUGSNAG_API_KEY }}\" > ./local.properties
88+
89+
- name: Setup Fingerprint API Key
90+
run: echo FINGERPRINT_API_KEY=${{ secrets.FINGERPRINT_API_KEY }} >> ./local.properties
91+
92+
- name: Setup Google Cloud Project Number
93+
run: echo GOOGLE_CLOUD_PROJECT_NUMBER=${{ secrets.GOOGLE_CLOUD_PROJECT_NUMBER }} >> ./local.properties
94+
95+
- name: Setup Kado API Key
96+
run: echo KADO_API_KEY=\"${{ secrets.KADO_API_KEY }}\" >> ./local.properties
97+
98+
- name: Setup Mixpanel API Key
99+
run: echo MIXPANEL_API_KEY=\"${{ secrets.FLIPCHAT_MIXPANEL_API_KEY }}\" >> ./local.properties
100+
101+
- name: Run Code tests
61102
run: bundle exec fastlane android fc_tests

0 commit comments

Comments
 (0)