Skip to content

Commit 0576371

Browse files
authored
Update GHA CI Java Version (#963)
The Firebase CLI tools require a java version 11+. The default GHA runner Java version did not meet this standard. This change adds an extra workflow step to install a JRE of v17.
1 parent 091a0d7 commit 0576371

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/desktop.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,11 @@ jobs:
361361
- name: Setup Firestore Emulator
362362
run: |
363363
npm install -g firebase-tools
364+
- name: Setup java
365+
uses: actions/setup-java@v3
366+
with:
367+
distribution: 'temurin'
368+
java-version: '17'
364369
- name: Run Desktop integration tests
365370
run: |
366371
cp scripts/gha/integration_testing/google-services.json testapps-desktop-ubuntu-latest-openssl/firestore/google-services.json

.github/workflows/integration_tests.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,6 +893,11 @@ jobs:
893893
command: |
894894
pip install -r scripts/gha/requirements.txt
895895
python scripts/gha/restore_secrets.py --passphrase "${{ secrets.TEST_SECRET }}" --artifact "testapps/testapps-desktop-${{ matrix.os }}-${{ matrix.arch }}-${{ matrix.ssl_variant }}"
896+
- name: Setup java
897+
uses: actions/setup-java@v3
898+
with:
899+
distribution: 'temurin'
900+
java-version: '17'
896901
- name: Run Desktop integration tests
897902
env:
898903
USE_FIRESTORE_EMULATOR: true

0 commit comments

Comments
 (0)