From 0fad484b6cb56b743fa74da8ebb9e6435ac71373 Mon Sep 17 00:00:00 2001 From: KeisukeYamashita <19yamashita15@gmail.com> Date: Mon, 1 Jul 2024 12:14:41 +0200 Subject: [PATCH] docs(ci.md): added Drone CI docs for NodeJs using the playwright Docker Image Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com> --- docs/src/ci.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/src/ci.md b/docs/src/ci.md index 2556cbf241..221328642d 100644 --- a/docs/src/ci.md +++ b/docs/src/ci.md @@ -601,6 +601,23 @@ steps: - 'CI=true' ``` +### Drone +* langs: js + +To run Playwright tests on Drone, use our public Docker image ([see Dockerfile](./docker.md)). + +```yml +kind: pipeline +name: default +type: docker + +steps: + - name: test + image: mcr.microsoft.com/playwright:v%%VERSION%%-jammy + commands: + - npx playwright test --project=$PROJECT +``` + ## Caching browsers Caching browser binaries is not recommended, since the amount of time it takes to restore the cache is comparable to the time it takes to download the binaries. Especially under Linux, [operating system dependencies](./browsers.md#install-system-dependencies) need to be installed, which are not cacheable.