-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3362 from dequelabs/release-4.4.0
chore(release): 4.4.0
- Loading branch information
Showing
157 changed files
with
6,775 additions
and
3,285 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,11 @@ defaults: &defaults | |
|
||
unix_box: &unix_box | ||
docker: | ||
- image: circleci/node:10-browsers | ||
- image: circleci/node:16.13-browsers | ||
|
||
unix_nightly_box: &unix_nightly_box | ||
docker: | ||
- image: cimg/node:lts-browsers | ||
|
||
win_box: &win_box | ||
executor: | ||
|
@@ -15,7 +19,7 @@ win_box: &win_box | |
orbs: | ||
win: circleci/[email protected] | ||
puppeteer: threetreeslight/[email protected] | ||
|
||
browser-tools: circleci/[email protected] | ||
|
||
set_npm_auth: &set_npm_auth | ||
run: npm config set "//registry.npmjs.org/:_authToken" $NPM_AUTH | ||
|
@@ -32,6 +36,20 @@ restore_dependency_cache_win: &restore_dependency_cache_win | |
- v9-cache-win-{{ checksum "package-lock.json" }} | ||
- v9-cache-win- | ||
|
||
# install the version of chromedriver that matches the currently installed version of Chrome (taken from CircleCI chromedriver script) | ||
install_linux_chromedriver: &install_linux_chromedriver | ||
run: | ||
name: Install Chromedriver | ||
command: | | ||
CHROME_VERSION="$(google-chrome --version)" | ||
CHROME_VERSION_STRING="$(echo $CHROME_VERSION | sed 's/^Google Chrome //' | sed 's/^Chromium //')" | ||
echo "Installed version of Google Chrome is $CHROME_VERSION_STRING" | ||
CHROMEDRIVER_RELEASE="${CHROME_VERSION_STRING%%.*}" | ||
echo "ChromeDriver $CHROMEDRIVER_RELEASE will be installed" | ||
npm install --no-save "chromedriver@$CHROMEDRIVER_RELEASE" | ||
jobs: | ||
# Fetch and cache dependencies. | ||
dependencies_unix: | ||
|
@@ -42,6 +60,7 @@ jobs: | |
- <<: *set_npm_auth | ||
- <<: *restore_dependency_cache_unix | ||
- run: npm ci | ||
- <<: *install_linux_chromedriver | ||
- save_cache: | ||
key: v9-cache-unix-{{ checksum "package-lock.json" }} | ||
paths: | ||
|
@@ -119,6 +138,16 @@ jobs: | |
- run: npm run build | ||
- run: npm run test:act | ||
|
||
# Run ARIA practices test cases | ||
test_aria_practices: | ||
<<: *defaults | ||
<<: *unix_box | ||
steps: | ||
- checkout | ||
- <<: *restore_dependency_cache_unix | ||
- run: npm run build | ||
- run: npm run test:apg | ||
|
||
# Test locale files | ||
test_locales: | ||
<<: *defaults | ||
|
@@ -140,20 +169,41 @@ jobs: | |
- run: npm run test:virtual-rules | ||
|
||
# Run the test suite for nightly builds. | ||
test_nightly: | ||
test_nightly_browsers: | ||
<<: *defaults | ||
<<: *unix_box | ||
<<: *unix_nightly_box | ||
steps: | ||
- checkout | ||
- <<: *restore_dependency_cache_unix | ||
- run: npm run build | ||
# install Chrome Beta | ||
- run: | | ||
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb | ||
sudo apt install ./google-chrome-beta_current_amd64.deb | ||
- run: | | ||
CHROME_BIN="$(which google-chrome-beta)" && echo "CHROME_BIN: $CHROME_BIN" | ||
npm run test -- --browsers Chrome,FirefoxNightly | ||
- run: | ||
name: Install Chrome Beta | ||
command: | | ||
wget https://dl.google.com/linux/direct/google-chrome-beta_current_amd64.deb | ||
sudo apt install ./google-chrome-beta_current_amd64.deb | ||
- <<: *install_linux_chromedriver | ||
- run: | ||
name: Install Firefox Nightly | ||
command: | | ||
wget -O firefox-nightly.tar.bz2 "https://download.mozilla.org/?product=firefox-nightly-latest-ssl&os=linux64&lang=en-US" | ||
tar xf firefox-nightly.tar.bz2 | ||
- run: | ||
name: Set Environment Variable | ||
command: echo "export FIREFOX_NIGHTLY_BIN=$(pwd)/firefox/firefox-bin" >> $BASH_ENV | ||
- run: npm run test -- --browsers Chrome,FirefoxNightly | ||
|
||
# Run the test suite for nightly builds. | ||
test_nightly_aria_practices: | ||
<<: *defaults | ||
<<: *unix_nightly_box | ||
steps: | ||
- browser-tools/install-browser-tools | ||
- checkout | ||
- <<: *restore_dependency_cache_unix | ||
- run: npm run build | ||
# install ARIA practices | ||
- run: npm install w3c/aria-practices#main | ||
- run: npm run test:apg | ||
|
||
# Test api docs can be built | ||
build_api_docs: | ||
|
@@ -257,7 +307,6 @@ workflows: | |
# Run tests on all commits, but after installing dependencies | ||
- test_unix: | ||
requires: | ||
- dependencies_unix | ||
- lint | ||
# Run IE/ Windows test on all commits | ||
- test_win: | ||
|
@@ -269,6 +318,9 @@ workflows: | |
- test_act: | ||
requires: | ||
- test_unix | ||
- test_aria_practices: | ||
requires: | ||
- test_unix | ||
- test_locales: | ||
requires: | ||
- test_unix | ||
|
@@ -354,6 +406,9 @@ workflows: | |
- develop | ||
jobs: | ||
- dependencies_unix | ||
- test_nightly: | ||
- test_nightly_browsers: | ||
requires: | ||
- dependencies_unix | ||
- test_nightly_aria_practices: | ||
requires: | ||
- dependencies_unix |
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
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
Oops, something went wrong.