From 1e680bfd0756b57ad76c876f66501161c9c764d6 Mon Sep 17 00:00:00 2001 From: Lahiru Maramba Date: Fri, 13 Aug 2021 16:22:42 -0400 Subject: [PATCH 1/2] Add emulator tests to nightlies - Run emulator based integration tests as part of the nightly tests. --- .github/workflows/nightly.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 536827b1e5..daf85f44dc 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -49,6 +49,12 @@ jobs: - name: Verify public API run: npm run api-extractor + + - name: Run emulator-based integration tests + run: | + npm install -g firebase-tools + firebase emulators:exec --project fake-project-id --only auth,database,firestore \ + 'npx mocha \"test/integration/{auth,database,firestore}.spec.ts\" --slow 5000 --timeout 20000 --require ts-node/register' - name: Run integration tests run: ./.github/scripts/run_integration_tests.sh From ad6ce7e9b00dcd7e5741942766b1a0cfdbcb17d1 Mon Sep 17 00:00:00 2001 From: Lahiru Maramba Date: Mon, 16 Aug 2021 17:25:11 -0400 Subject: [PATCH 2/2] Trigger CI