Skip to content

Commit 7375cab

Browse files
authored
Merge sessions-e2e.yml from firebase-sessions so it can run on schedule (#4885)
* Merge sessions-e2e.yml from firebase-sessions so it can run on schedule * Remove appcheck env var
1 parent 5a3de3a commit 7375cab

File tree

1 file changed

+29
-23
lines changed

1 file changed

+29
-23
lines changed

.github/workflows/sessions-e2e.yml

Lines changed: 29 additions & 23 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 }}
@@ -10,29 +12,33 @@ env:
1012
SESSIONS_E2E_GOOGLE_SERVICES: ${{ secrets.SESSIONS_E2E_GOOGLE_SERVICES }}
1113

1214
jobs:
13-
build:
15+
test:
1416

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+
run: |
44+
./gradlew :firebase-sessions:test-app:deviceCheck withErrorProne -PtargetBackend="prod"

0 commit comments

Comments
 (0)