fix workflow: use git clone instead of actions/checkout
music-room Playwright / playwright (push) Failing after 17s
music-room Playwright / playwright (push) Failing after 17s
This commit is contained in:
@@ -3,7 +3,6 @@ name: music-room Playwright
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [master, main]
|
branches: [master, main]
|
||||||
pull_request:
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
@@ -11,14 +10,22 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
timeout-minutes: 45
|
timeout-minutes: 45
|
||||||
steps:
|
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
|
- name: Install deps & Chromium
|
||||||
run: |
|
run: |
|
||||||
|
cd /work
|
||||||
npm ci
|
npm ci
|
||||||
npx playwright install chromium --with-deps
|
npx playwright install chromium --with-deps
|
||||||
|
|
||||||
- name: Playwright tests
|
- name: Playwright tests
|
||||||
env:
|
env:
|
||||||
MOICEN_E2E_UNIONID: ${{ secrets.MOICEN_E2E_UNIONID }}
|
MOICEN_E2E_UNIONID: ${{ secrets.MOICEN_E2E_UNIONID }}
|
||||||
run: npx playwright test
|
run: |
|
||||||
|
cd /work
|
||||||
|
npx playwright test
|
||||||
|
|||||||
Reference in New Issue
Block a user