Skip to content

Commit b399f5d

Browse files
authored
build: update CI workflow
1 parent d52cf83 commit b399f5d

File tree

1 file changed

+9
-55
lines changed

1 file changed

+9
-55
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,18 @@ env:
1111
JAVA_VERSION: 17
1212

1313
jobs:
14-
code-tests:
15-
name: Run Code Tests
14+
flipcash-tests:
15+
name: Run Flipcash Tests
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: actions/checkout@master
18+
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1921

2022
- name: Setup Java env
2123
uses: actions/setup-java@v3
2224
with:
23-
java-version: '17'
25+
java-version: '21'
2426
distribution: 'corretto'
2527
cache: 'gradle'
2628

@@ -39,64 +41,16 @@ jobs:
3941
encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }}
4042

4143
- name: Setup BugSnag API Key
42-
run: echo BUGSNAG_API_KEY=\"${{ secrets.BUGSNAG_API_KEY }}\" > ./local.properties
43-
44-
- name: Setup Fingerprint API Key
45-
run: echo FINGERPRINT_API_KEY=${{ secrets.FINGERPRINT_API_KEY }} >> ./local.properties
46-
47-
- name: Setup Google Cloud Project Number
48-
run: echo GOOGLE_CLOUD_PROJECT_NUMBER=${{ secrets.GOOGLE_CLOUD_PROJECT_NUMBER }} >> ./local.properties
49-
50-
- name: Setup Kado API Key
51-
run: echo KADO_API_KEY=\"${{ secrets.KADO_API_KEY }}\" >> ./local.properties
52-
53-
- name: Setup Mixpanel API Key
54-
run: echo MIXPANEL_API_KEY=\"${{ secrets.MIXPANEL_API_KEY }}\" >> ./local.properties
55-
56-
- name: Run Code tests
57-
run: bundle exec fastlane android code_tests
58-
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
44+
run: echo BUGSNAG_API_KEY=\"${{ secrets.FLIPCASH_BUGSNAG_API_KEY }}\" > ./local.properties
8845

8946
- name: Setup Fingerprint API Key
9047
run: echo FINGERPRINT_API_KEY=${{ secrets.FINGERPRINT_API_KEY }} >> ./local.properties
9148

9249
- name: Setup Google Cloud Project Number
9350
run: echo GOOGLE_CLOUD_PROJECT_NUMBER=${{ secrets.GOOGLE_CLOUD_PROJECT_NUMBER }} >> ./local.properties
9451

95-
- name: Setup Kado API Key
96-
run: echo KADO_API_KEY=\"${{ secrets.KADO_API_KEY }}\" >> ./local.properties
97-
9852
- name: Setup Mixpanel API Key
99-
run: echo MIXPANEL_API_KEY=\"${{ secrets.FLIPCHAT_MIXPANEL_API_KEY }}\" >> ./local.properties
53+
run: echo MIXPANEL_API_KEY=\"${{ secrets.FLIPCASH_MIXPANEL_API_KEY }}\" >> ./local.properties
10054

10155
- name: Run Code tests
102-
run: bundle exec fastlane android fc_tests
56+
run: bundle exec fastlane android flipcash_tests

0 commit comments

Comments
 (0)