-
Notifications
You must be signed in to change notification settings - Fork 582
42 lines (33 loc) · 1.13 KB
/
sessions-e2e.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Firebase Sessions E2E Tests
on:
schedule:
- cron: 24 */4 * * * # every 4 hours at 24 minutes past the hour
workflow_dispatch: # allow triggering the workflow manually
concurrency:
group: ${{ github.workflow }}
env:
SESSIONS_E2E_GOOGLE_SERVICES: ${{ secrets.SESSIONS_E2E_GOOGLE_SERVICES }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout firebase-sessions
uses: actions/checkout@v4.1.1
- name: set up JDK 17
uses: actions/setup-java@v4.1.0
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: Add google-services.json
run: |
echo $SESSIONS_E2E_GOOGLE_SERVICES | base64 -d > google-services.json
- uses: google-github-actions/auth@v2
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v2
- name: Run sessions end-to-end tests
env:
FTL_RESULTS_BUCKET: fireescape
run: |
./gradlew :firebase-sessions:test-app:deviceCheck withErrorProne -PtargetBackend="prod" -PtriggerCrashes