diff --git a/.github/workflows/playwright.yaml b/.github/workflows/playwright.yaml index c67532f..8d63242 100644 --- a/.github/workflows/playwright.yaml +++ b/.github/workflows/playwright.yaml @@ -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 }}