Skip to content

Commit 03ba262

Browse files
authored
Add check against firestore nightly (#7851)
* Add check against firestore nightly * change to trigger test * prettier
1 parent efa116b commit 03ba262

File tree

2 files changed

+37
-1
lines changed

2 files changed

+37
-1
lines changed

.github/workflows/test-changed-firestore.yml

+34
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,40 @@ jobs:
131131
env:
132132
EXPERIMENTAL_MODE: true
133133

134+
test-firestore-nightly-with-chrome:
135+
name: Test Nightly Firestore with Chrome
136+
strategy:
137+
matrix:
138+
test-name: ["test:browser:nightly"]
139+
runs-on: ubuntu-latest
140+
needs: build
141+
if: ${{ needs.build.outputs.changed == 'true'}}
142+
steps:
143+
- name: Set up Node (16)
144+
uses: actions/setup-node@v3
145+
with:
146+
node-version: 16.x
147+
- name: install Chrome stable
148+
run: |
149+
sudo apt-get update
150+
sudo apt-get install google-chrome-stable
151+
- name: Download build archive
152+
uses: actions/download-artifact@v3
153+
with:
154+
name: build.tar.gz
155+
- name: Unzip build artifact
156+
run: tar xf build.tar.gz
157+
- name: Test setup against nightly Firestore
158+
env:
159+
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.FIRESTORE_SDK_NIGHTLY_PROJECT_JSON }}
160+
run: |
161+
echo $INTEG_TESTS_GOOGLE_SERVICES > config/project.json
162+
- name: Run tests
163+
run: cd packages/firestore && yarn run ${{ matrix.test-name }}
164+
env:
165+
EXPERIMENTAL_MODE: true
166+
167+
134168
compat-test-firefox:
135169
name: Test Firestore Compatible on Firefox
136170
# Whatever version of Firefox comes with 22.04 is causing Firefox

packages/firestore/test/integration/util/settings.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,9 @@ function parseTargetBackend(targetBackend: string): TargetBackend {
7373
case 'prod':
7474
return TargetBackend.PROD;
7575
default:
76-
throw Error('Unknown backend configuration used for integration tests.');
76+
throw Error(
77+
`Unknown backend configuration ${targetBackend} used for integration tests.`
78+
);
7779
}
7880
}
7981

0 commit comments

Comments
 (0)