From 752a76555aa601af16f425bc6d16291543d66696 Mon Sep 17 00:00:00 2001 From: Eleni Chappen Date: Thu, 19 Oct 2023 15:16:11 -0500 Subject: [PATCH] Fix: add chrome launch config to get pa11y running in CircleCI Also bust dependency caches for ruby and node from the ruby-3 upgrade --- .circleci/config.yml | 6 +++--- .pa11yci | 9 +++++++++ 2 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 .pa11yci diff --git a/.circleci/config.yml b/.circleci/config.yml index 127c53192..193ec51a9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,14 +33,14 @@ jobs: - restore_cache: keys: - - v1-dependencies-npm-{{ checksum "package-lock.json" }} + - v2-dependencies-npm-{{ checksum "package-lock.json" }} # fallback to using the latest cache if no exact match is found - - v1-dependencies-npm- + - v2-dependencies-npm- - run: npm install - save_cache: paths: - node_modules - key: v1-dependencies-npm-{{ checksum "package-lock.json" }} + key: v2-dependencies-npm-{{ checksum "package-lock.json" }} - run: npm run uswds-build - run: bundle exec jekyll build - run: npm run htmlproofer diff --git a/.pa11yci b/.pa11yci new file mode 100644 index 000000000..cee365a3b --- /dev/null +++ b/.pa11yci @@ -0,0 +1,9 @@ +{ + "defaults": { + "chromeLaunchConfig": { + "args": [ + "--no-sandbox" + ] + } + } +}