diff --git a/.config/dictionaries/project.dic b/.config/dictionaries/project.dic index be1184498..ba465b0bb 100644 --- a/.config/dictionaries/project.dic +++ b/.config/dictionaries/project.dic @@ -53,7 +53,15 @@ Kroki kubeconfig lcov ldflags +libasound +libatk +libatspi +libdrm +libgbm libgcc +libnss +libxkbcommon +libxshmfence lintfix markdownlint mattn @@ -110,5 +118,6 @@ wasmtime webkitallowfullscreen WORKDIR xerrors +xvfb zstd -zstdcat +zstdcat \ No newline at end of file diff --git a/cspell.json b/cspell.json index e6fba96b0..af0fbe705 100644 --- a/cspell.json +++ b/cspell.json @@ -35,7 +35,7 @@ "Scripthash", "vkey", "cbor", - "metamap", + "metamap" ], "ignorePaths": [ ".config/dictionaries", diff --git a/earthly/playwright/Earthfile b/earthly/playwright/Earthfile new file mode 100644 index 000000000..29a9b78aa --- /dev/null +++ b/earthly/playwright/Earthfile @@ -0,0 +1,14 @@ +VERSION 0.8 + +playwright-base: + FROM mcr.microsoft.com/playwright:v1.45.2-jammy + WORKDIR /wallet-automation + + 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/* + +SETUP: + FUNCTION + FROM +playwright-base \ No newline at end of file diff --git a/examples/playwright/Earthfile b/examples/playwright/Earthfile new file mode 100644 index 000000000..875d61bd6 --- /dev/null +++ b/examples/playwright/Earthfile @@ -0,0 +1,12 @@ +VERSION 0.8 + +IMPORT ../../earthly/playwright AS playwright-ci + +deps: + DO playwright-ci+SETUP + + COPY package.json . + COPY package-lock.json . + + RUN npm install + ENV PATH "/wallet-automation/node_modules/.bin:$PATH" \ No newline at end of file