From b64aa4e46d415caa5f7253fcc3e3116e5f4fb836 Mon Sep 17 00:00:00 2001 From: Jason Date: Tue, 17 Dec 2024 16:28:29 -0600 Subject: [PATCH] ci: fix issue where puppeteer is failing on ubuntu-latest (#1769) --- .github/workflows/tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50a10b143..9da94aee7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -61,4 +61,10 @@ jobs: NODE_ENV=production yarn --cwd packages/react build NODE_ENV=production yarn --cwd packages/styles build - run: yarn build:docs - - run: yarn test:a11y + # Newer versions of Ubuntu have increased security restrictions in which + # puppeteer is unable to launch without additional configuration + # See: https://chromium.googlesource.com/chromium/src/+/main/docs/security/apparmor-userns-restrictions.md + - run: | + export CHROME_DEVEL_SANDBOX=/opt/google/chrome/chrome-sandbox + sudo chmod 4755 /opt/google/chrome/chrome-sandbox + yarn test:a11y