Skip to content

Commit 0e0035d

Browse files
authored
Merge 8e94894 into 993f497
2 parents 993f497 + 8e94894 commit 0e0035d

File tree

1 file changed

+29
-22
lines changed

1 file changed

+29
-22
lines changed

.github/workflows/sessions-e2e.yml

Lines changed: 29 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Firebase Sessions E2E Tests
22

33
on:
4-
workflow_dispatch: # allow triggering the workflow manually
4+
schedule:
5+
- cron: 24 */4 * * * # every 4 hours at 24 minutes past the hour
6+
workflow_dispatch: # allow triggering the workflow manually
57

68
concurrency:
79
group: ${{ github.workflow }}
@@ -15,24 +17,29 @@ jobs:
1517
runs-on: ubuntu-latest
1618

1719
steps:
18-
- name: Checkout firebase-sessions
19-
uses: actions/checkout@v3
20-
with:
21-
ref: 'firebase-sessions'
22-
23-
- name: set up JDK 11
24-
uses: actions/setup-java@v3
25-
with:
26-
java-version: '11'
27-
distribution: 'temurin'
28-
cache: gradle
29-
30-
- name: Add google-services.json
31-
run: |
32-
echo $SESSIONS_E2E_GOOGLE_SERVICES | base64 -d > google-services.json
33-
34-
- name: Grant execute permission for gradlew
35-
run: chmod +x gradlew
36-
37-
- name: Run sessions end-to-end tests
38-
run: ./gradlew firebase-sessions:deviceCheck withErrorProne -PtargetBackend="prod"
20+
- name: Checkout firebase-sessions
21+
uses: actions/checkout@v3
22+
with:
23+
ref: 'firebase-sessions'
24+
25+
- name: set up JDK 11
26+
uses: actions/setup-java@v3
27+
with:
28+
java-version: '11'
29+
distribution: 'temurin'
30+
cache: gradle
31+
32+
- name: Add google-services.json
33+
run: |
34+
echo $SESSIONS_E2E_GOOGLE_SERVICES | base64 -d > google-services.json
35+
36+
- uses: google-github-actions/auth@v0
37+
with:
38+
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
39+
- uses: google-github-actions/setup-gcloud@v0
40+
- name: Run sessions end-to-end tests
41+
env:
42+
FTL_RESULTS_BUCKET: fireescape
43+
FIREBASE_APP_CHECK_DEBUG_SECRET: ${{ secrets.FIREBASE_APP_CHECK_DEBUG_SECRET }}
44+
run: |
45+
./gradlew :firebase-sessions:deviceCheck withErrorProne -PtargetBackend="prod"

0 commit comments

Comments
 (0)