Skip to content

Commit 3485390

Browse files
Merge pull request #282 from edx/srathod/BOMS_221_e2e_playwright_tests_pipeline
chore: Added node and playwright installation steps in Dockerfile
2 parents 8fc71a2 + a799c96 commit 3485390

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docker/build/github-actions-runner/Dockerfile

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,13 @@ RUN apt-get update && apt-get install -y docker-ce
4040
# See: https://docs.docker.com/engine/installation/linux/ubuntulinux/
4141
RUN usermod -aG docker actions-runner
4242

43+
# Install Node.js 20.x
44+
RUN curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
45+
&& apt-get install -y nodejs
46+
47+
# Install global Playwright CLI and pre-download required browser binaries
48+
RUN npm install -g playwright && npx playwright install --with-deps
49+
4350
# copy over the actions-runner.sh script
4451
ADD docker/build/github-actions-runner/actions-runner.sh /actions-runner.sh
4552

0 commit comments

Comments
 (0)