Skip to content

Commit

Permalink
chore(ci): Adding Playwright function
Browse files Browse the repository at this point in the history
  • Loading branch information
emiride committed Sep 25, 2024
1 parent 630a0cf commit 47f8af6
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions earthly/playwright/Earthfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
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/*

COPY package.json .
COPY package-lock.json .

RUN npm install
ENV PATH "/wallet-automation/node_modules/.bin:$PATH"

SETUP:
FUNCTION
FROM +playwright-base

0 comments on commit 47f8af6

Please sign in to comment.