From f75bdcb838ad166fbe763f222fb2920f4514a344 Mon Sep 17 00:00:00 2001 From: weli Date: Sun, 3 May 2026 10:48:58 +0800 Subject: [PATCH] fix workflow: use git clone instead of actions/checkout --- .gitea/workflows/playwright-music-room.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/playwright-music-room.yml b/.gitea/workflows/playwright-music-room.yml index c2642a2..c219a7a 100644 --- a/.gitea/workflows/playwright-music-room.yml +++ b/.gitea/workflows/playwright-music-room.yml @@ -3,7 +3,6 @@ name: music-room Playwright on: push: branches: [master, main] - pull_request: workflow_dispatch: jobs: @@ -11,14 +10,22 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 45 steps: - - uses: actions/checkout@v4 + - name: Checkout repo + run: | + mkdir -p /work + cd /work + git clone http://127.0.0.1:3006/weli/huike-e2e-moicen.git . + git checkout ${{ gitea.sha }} - name: Install deps & Chromium run: | + cd /work npm ci npx playwright install chromium --with-deps - name: Playwright tests env: MOICEN_E2E_UNIONID: ${{ secrets.MOICEN_E2E_UNIONID }} - run: npx playwright test + run: | + cd /work + npx playwright test