Update some minor dependencies. #10601
Workflow file for this run
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 | |
# Install Chrome version 110.0.5481.177-1 as test starts to fail on version 111. | |
# Temporary: Auth team will explore what's going wrong with the auth tests. | |
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_110.0.5481.177-1_amd64.deb | |
sudo apt-get install -f ./google-chrome-stable_110.0.5481.177-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 | |
# Chrome webdriver version is pinned to avoid install failures like "No such object: chromedriver/LATEST_RELEASE_115.0.5790" | |
# These are installed even in the Firefox test due to `yarn` command which pulls the devDependency listed in package.json. | |
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_110.0.5481.177-1_amd64.deb | |
sudo apt-get install -f ./google-chrome-stable_110.0.5481.177-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' |