ci: Install playwright deps in test.sh

This commit is contained in:
Anmol Sethi 2023-03-02 20:34:12 -08:00
parent 4433f4bbae
commit 6706120bc6
No known key found for this signature in database
GPG key ID: 25BC68888A99A8BA
2 changed files with 2 additions and 2 deletions

View file

@ -7,8 +7,7 @@ RUN apt-get update && apt-get install -y ca-certificates curl dumb-init sudo
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -s - && \
apt-get install -y nodejs
# See https://github.com/microsoft/playwright/issues/18319
RUN npx playwright@1.31.1 install-deps chromium
RUN npx playwright@1.31.1 install --with-deps chromium
RUN adduser --gecos '' --disabled-password debian \
&& echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd

View file

@ -8,5 +8,6 @@ fi
if [ "${CI:-}" ]; then
export FORCE_COLOR=1
npx playwright@1.31.1 install --with-deps chromium
fi
go test --timeout=30m "$@"