Skip to content

Commit

Permalink
Add check against firestore nightly (#7851)
Browse files Browse the repository at this point in the history
* Add check against firestore nightly

* change to trigger test

* prettier
  • Loading branch information
wu-hui committed Dec 11, 2023
1 parent efa116b commit 03ba262
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/test-changed-firestore.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,40 @@ jobs:
env:
EXPERIMENTAL_MODE: true

test-firestore-nightly-with-chrome:
name: Test Nightly Firestore with Chrome
strategy:
matrix:
test-name: ["test:browser:nightly"]
runs-on: ubuntu-latest
needs: build
if: ${{ needs.build.outputs.changed == 'true'}}
steps:
- name: Set up Node (16)
uses: actions/setup-node@v3
with:
node-version: 16.x
- name: install Chrome stable
run: |
sudo apt-get update
sudo apt-get install google-chrome-stable
- name: Download build archive
uses: actions/download-artifact@v3
with:
name: build.tar.gz
- name: Unzip build artifact
run: tar xf build.tar.gz
- name: Test setup against nightly Firestore
env:
INTEG_TESTS_GOOGLE_SERVICES: ${{ secrets.FIRESTORE_SDK_NIGHTLY_PROJECT_JSON }}
run: |
echo $INTEG_TESTS_GOOGLE_SERVICES > config/project.json
- name: Run tests
run: cd packages/firestore && yarn run ${{ matrix.test-name }}
env:
EXPERIMENTAL_MODE: true


compat-test-firefox:
name: Test Firestore Compatible on Firefox
# Whatever version of Firefox comes with 22.04 is causing Firefox
Expand Down
4 changes: 3 additions & 1 deletion packages/firestore/test/integration/util/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ function parseTargetBackend(targetBackend: string): TargetBackend {
case 'prod':
return TargetBackend.PROD;
default:
throw Error('Unknown backend configuration used for integration tests.');
throw Error(
`Unknown backend configuration ${targetBackend} used for integration tests.`
);
}
}

Expand Down

0 comments on commit 03ba262

Please sign in to comment.