DO NOT MERGE: Firestore: implement an experiment to determine parameters for index auto-creation #10657
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Auth | |
on: pull_request | |
env: | |
# make chromedriver detect installed Chrome version and download the corresponding driver | |
DETECT_CHROMEDRIVER_VERSION: true | |
jobs: | |
test-chrome: | |
name: Test Auth on Chrome and Node If Changed | |
runs-on: ubuntu-latest | |
steps: | |
# install Chrome first, so the correct version of webdriver can be installed by chromedriver when setting up the repo | |
- name: install Chrome stable | |
# Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". | |
# The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. | |
# TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. | |
run: | | |
sudo apt-get update | |
sudo apt-get install wget | |
sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb | |
sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
# This makes Actions fetch all Git history so run-changed script can diff properly. | |
fetch-depth: 0 | |
- name: Set up Node (14) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Bump Node memory limit | |
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV | |
- name: Test setup and yarn install | |
run: | | |
cp config/ci.config.json config/project.json | |
yarn | |
- name: build | |
run: yarn build:changed auth | |
- name: Run tests on changed packages | |
run: xvfb-run yarn test:changed auth | |
test-firefox: | |
name: Test Auth on Firefox If Changed | |
# Whatever version of Firefox comes with 22.04 is causing Firefox | |
# startup to hang when launched by karma. Need to look further into | |
# why. | |
runs-on: ubuntu-20.04 | |
# Pin Chrome version 114.0.5735.90-1 to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790". | |
# The failure happens because https://chromedriver.chromium.org/downloads only goes up to version 114. | |
# TODO(b/297380444) Update script to install the latest Chrome and ChromeDriver. | |
steps: | |
- name: install Firefox stable | |
run: | | |
sudo apt-get update | |
sudo apt-get install firefox | |
sudo apt-get install wget | |
sudo wget http://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_114.0.5735.90-1_amd64.deb | |
sudo apt-get install -f ./google-chrome-stable_114.0.5735.90-1_amd64.deb --allow-downgrades | |
- name: Checkout Repo | |
uses: actions/checkout@master | |
with: | |
# This makes Actions fetch all Git history so run-changed script can diff properly. | |
fetch-depth: 0 | |
- name: Set up Node (14) | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 14.x | |
- name: Bump Node memory limit | |
run: echo "NODE_OPTIONS=--max_old_space_size=4096" >> $GITHUB_ENV | |
- name: Test setup and yarn install | |
run: | | |
cp config/ci.config.json config/project.json | |
yarn | |
- name: build | |
run: yarn build:changed auth | |
- name: Run tests on auth changed packages | |
run: xvfb-run yarn test:changed auth | |
env: | |
BROWSERS: 'Firefox' |