|
11 | 11 | JAVA_VERSION: 17 |
12 | 12 |
|
13 | 13 | jobs: |
14 | | - unit-tests: |
15 | | - name: Unit tests |
| 14 | + code-tests: |
| 15 | + name: Run Code Tests |
16 | 16 | runs-on: ubuntu-latest |
17 | | - timeout-minutes: 60 |
18 | 17 | steps: |
19 | 18 | - uses: actions/checkout@master |
20 | 19 |
|
|
38 | 37 | fileName: google-services.json |
39 | 38 | fileDir: ./app/src |
40 | 39 | encodedString: ${{ secrets.GOOGLE_SERVICES_JSON }} |
41 | | - |
| 40 | + |
42 | 41 | - name: Setup BugSnag API Key |
43 | 42 | run: echo BUGSNAG_API_KEY=\"${{ secrets.BUGSNAG_API_KEY }}\" > ./local.properties |
44 | 43 |
|
|
57 | 56 | - name: Run Code tests |
58 | 57 | run: bundle exec fastlane android code_tests |
59 | 58 |
|
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 |
61 | 102 | run: bundle exec fastlane android fc_tests |
0 commit comments