feat: 为 GitHub Actions 步骤添加名称以增强可读性
This commit is contained in:
15
.github/workflows/playwright.yaml
vendored
15
.github/workflows/playwright.yaml
vendored
@ -14,11 +14,13 @@ jobs:
|
||||
outputs:
|
||||
url: ${{ steps.surge_deploy.outputs.url }}
|
||||
steps:
|
||||
- uses: yanhao98/composite-actions/setup-node-environment@502d85b5b52619fd7b74aa48da428de4a4d2c87b
|
||||
- run: pnpm run build-only
|
||||
- name: ⚙️ Setup Node Environment
|
||||
uses: yanhao98/composite-actions/setup-node-environment@502d85b5b52619fd7b74aa48da428de4a4d2c87b
|
||||
- name: 🔨 Build Project
|
||||
run: pnpm run build-only
|
||||
env:
|
||||
VITE_BUILD_COMMIT: ${{ github.sha }}
|
||||
- name: 部署到 Surge
|
||||
- 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@502d85b5b52619fd7b74aa48da428de4a4d2c87b
|
||||
@ -27,10 +29,11 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
container: yanhao98/runner-images:pnpm-with-playwright
|
||||
steps:
|
||||
- uses: yanhao98/composite-actions/setup-node-environment@502d85b5b52619fd7b74aa48da428de4a4d2c87b
|
||||
- name: Install Playwright Browsers
|
||||
- name: ⚙️ Setup Node Environment
|
||||
uses: yanhao98/composite-actions/setup-node-environment@502d85b5b52619fd7b74aa48da428de4a4d2c87b
|
||||
- name: 📥 Install Playwright Browsers
|
||||
run: pnpm exec playwright install --with-deps
|
||||
- name: Run Playwright tests
|
||||
- name: ▶️ Run Playwright tests
|
||||
run: npx playwright test
|
||||
env:
|
||||
BASE_URL: ${{ needs.surge.outputs.url }}
|
||||
|
Reference in New Issue
Block a user