Skip to content

Setup sessions e2e workflow #4859

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Apr 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 29 additions & 22 deletions .github/workflows/sessions-e2e.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Firebase Sessions E2E Tests

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

concurrency:
group: ${{ github.workflow }}
Expand All @@ -15,24 +17,29 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout firebase-sessions
uses: actions/checkout@v3
with:
ref: 'firebase-sessions'

- name: set up JDK 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle

- name: Add google-services.json
run: |
echo $SESSIONS_E2E_GOOGLE_SERVICES | base64 -d > google-services.json

- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Run sessions end-to-end tests
run: ./gradlew firebase-sessions:deviceCheck withErrorProne -PtargetBackend="prod"
- name: Checkout firebase-sessions
uses: actions/checkout@v3
with:
ref: 'firebase-sessions'

- name: set up JDK 11
uses: actions/setup-java@v3
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@v0
with:
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
- uses: google-github-actions/setup-gcloud@v0
- name: Run sessions end-to-end tests
env:
FTL_RESULTS_BUCKET: fireescape
FIREBASE_APP_CHECK_DEBUG_SECRET: ${{ secrets.FIREBASE_APP_CHECK_DEBUG_SECRET }}
run: |
./gradlew :firebase-sessions:deviceCheck withErrorProne -PtargetBackend="prod"