From c15bfa2f49beb612556d2438f8fb2a84f6183643 Mon Sep 17 00:00:00 2001 From: Marvin Zhang Date: Wed, 23 Oct 2024 11:00:49 +0800 Subject: [PATCH] ci: updated workflow --- .github/workflows/docker-crawlab.yml | 20 ++++++++++++-------- backend/README.md | 1 - 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/docker-crawlab.yml b/.github/workflows/docker-crawlab.yml index 3f510952..44dcaef8 100644 --- a/.github/workflows/docker-crawlab.yml +++ b/.github/workflows/docker-crawlab.yml @@ -234,18 +234,22 @@ jobs: with: node-version: '20' - - name: Install Playwright and dependencies + - name: Install pnpm + run: npm install -g pnpm@9 + + - name: Install dependencies + working-directory: tests/e2e + run: pnpm install + + - name: Install Playwright browser id: install_playwright - run: | - npm init -y - npm install @playwright/test - npx playwright install --with-deps + working-directory: tests/e2e + run: pnpm playwright install --with-deps - name: Run Playwright tests id: run_playwright - run: | - cd tests/e2e - npx playwright test + working-directory: tests/e2e + run: pnpm playwright test - name: Upload Playwright report id: upload_playwright_report diff --git a/backend/README.md b/backend/README.md index dafe39e1..a1d4b01a 100644 --- a/backend/README.md +++ b/backend/README.md @@ -1,4 +1,3 @@ # crawlab-backend Backend (Golang) for Crawlab -