Files
vue-ts-example/.github/workflows/playwright.yaml
Renovate Bot 175ed3450d
Some checks failed
/ lint-build-and-check (push) Successful in 5m13s
/ surge (push) Successful in 3m32s
/ playwright (push) Failing after 11m40s
chore(deps): update yanhao98/composite-actions digest to 2d4be1a
2025-04-02 15:08:11 +08:00

37 lines
1.1 KiB
YAML

defaults:
run:
shell: bash
env:
TZ: Asia/Shanghai
on:
push:
jobs:
surge:
runs-on: ubuntu-latest
outputs:
url: ${{ steps.surge_deploy.outputs.url }}
steps:
- uses: yanhao98/composite-actions/setup-node-environment@2d4be1a8aaded8b30f9d42cd50b2e15dc94a705c
- run: pnpm run build-only
env:
VITE_BUILD_COMMIT: ${{ github.sha }}
- name: 部署到 Surge
id: surge_deploy
if: ${{ github.actor != 'nektos/act' }} # https://nektosact.com/usage/index.html#skipping-steps
uses: yanhao98/composite-actions/deploy-dist-to-surge@2d4be1a8aaded8b30f9d42cd50b2e15dc94a705c
playwright:
needs: surge
runs-on: ubuntu-latest
container: yanhao98/runner-images:pnpm-with-playwright
steps:
- uses: yanhao98/composite-actions/setup-node-environment@2d4be1a8aaded8b30f9d42cd50b2e15dc94a705c
- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
- name: Run Playwright tests
run: npx playwright test
env:
BASE_URL: ${{ needs.surge.outputs.url }}