Skip to content

Commit

Permalink
chore(ci): Adding Playwright function (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
emiride authored Sep 27, 2024
1 parent 8882d57 commit 3a1ccac
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .config/dictionaries/project.dic
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,15 @@ Kroki
kubeconfig
lcov
ldflags
libasound
libatk
libatspi
libdrm
libgbm
libgcc
libnss
libxkbcommon
libxshmfence
lintfix
markdownlint
mattn
Expand Down Expand Up @@ -110,5 +118,6 @@ wasmtime
webkitallowfullscreen
WORKDIR
xerrors
xvfb
zstd
zstdcat
zstdcat
12 changes: 12 additions & 0 deletions earthly/playwright/Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
VERSION 0.8

SETUP:
FUNCTION
ARG workdir
FROM mcr.microsoft.com/playwright:v1.45.2-jammy
WORKDIR $workdir

RUN apt-get update && apt-get install -y \
libnss3 libatk-bridge2.0-0 libdrm-dev libxkbcommon-dev libgbm-dev libasound-dev libatspi2.0-0 libxshmfence-dev postgresql-client xvfb python3.11 python3-pip && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*

0 comments on commit 3a1ccac

Please sign in to comment.