ci: Install playwright deps in test.sh
This commit is contained in:
parent
4433f4bbae
commit
6706120bc6
2 changed files with 2 additions and 2 deletions
|
|
@ -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 - && \
|
RUN curl -fsSL https://deb.nodesource.com/setup_19.x | bash -s - && \
|
||||||
apt-get install -y nodejs
|
apt-get install -y nodejs
|
||||||
# See https://github.com/microsoft/playwright/issues/18319
|
RUN npx playwright@1.31.1 install --with-deps chromium
|
||||||
RUN npx playwright@1.31.1 install-deps chromium
|
|
||||||
|
|
||||||
RUN adduser --gecos '' --disabled-password debian \
|
RUN adduser --gecos '' --disabled-password debian \
|
||||||
&& echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
&& echo "debian ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
|
||||||
|
|
|
||||||
|
|
@ -8,5 +8,6 @@ fi
|
||||||
|
|
||||||
if [ "${CI:-}" ]; then
|
if [ "${CI:-}" ]; then
|
||||||
export FORCE_COLOR=1
|
export FORCE_COLOR=1
|
||||||
|
npx playwright@1.31.1 install --with-deps chromium
|
||||||
fi
|
fi
|
||||||
go test --timeout=30m "$@"
|
go test --timeout=30m "$@"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue