Skip to content

Commit 335acf0

Browse files
authored
Add new check for nightly firestore check (#5594)
1 parent 82213a1 commit 335acf0

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/ci_tests.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,50 @@ jobs:
199199
run: |
200200
./gradlew firebase-firestore:deviceCheck withErrorProne -PtargetBackend="prod" -PtargetDatabaseId="test-db"
201201
202+
203+
firestore_nightly_integ_tests:
204+
name: "Firestore Instrumentation Tests Against Nightly Environment"
205+
runs-on: ubuntu-22.04
206+
needs:
207+
- determine_changed
208+
# only run on post submit or PRs not originating from forks.
209+
if: ((github.repository == 'Firebase/firebase-android-sdk' && github.event_name == 'push') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) && contains(fromJSON(needs.determine_changed.outputs.modules), ':firebase-firestore')
210+
strategy:
211+
fail-fast: false
212+
213+
steps:
214+
- uses: actions/[email protected]
215+
with:
216+
fetch-depth: 2
217+
submodules: true
218+
219+
- name: Set up JDK 11
220+
uses: actions/setup-java@v3
221+
with:
222+
java-version: 11
223+
distribution: temurin
224+
cache: gradle
225+
226+
- name: Add google-services.json
227+
env:
228+
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.NIGHTLY_INTEG_TESTS_GOOGLE_SERVICES }}
229+
run: |
230+
echo $INTEG_TESTS_GOOGLE_SERVICES > google-services.json
231+
- uses: google-github-actions/auth@v0
232+
with:
233+
credentials_json: ${{ secrets.GCP_SERVICE_ACCOUNT }}
234+
- uses: google-github-actions/setup-gcloud@v0
235+
236+
- name: Firestore Nightly Integ Tests
237+
env:
238+
FIREBASE_CI: 1
239+
FTL_RESULTS_BUCKET: android-ci
240+
FTL_RESULTS_DIR: ${{ github.event_name == 'pull_request' && format('pr-logs/pull/{0}/{1}/{2}/{3}_{4}/artifacts/', github.repository, github.event.pull_request.number, github.job, github.run_id, github.run_attempt) || format('logs/{0}/{1}_{2}/artifacts/', github.workflow, github.run_id, github.run_attempt)}}
241+
FIREBASE_APP_CHECK_DEBUG_SECRET: ${{ secrets.FIREBASE_APP_CHECK_DEBUG_SECRET }}
242+
run: |
243+
./gradlew firebase-firestore:deviceCheck withErrorProne -PtargetBackend="nightly"
244+
245+
202246
publish-test-results:
203247
name: "Publish Tests Results"
204248
needs:

0 commit comments

Comments
 (0)