From 9e208050341ce7534193773b289cc88e799557ec Mon Sep 17 00:00:00 2001 From: peptiderepo Date: Sun, 26 Apr 2026 11:41:20 +0700 Subject: [PATCH] ci: add Playwright smoke gate before prod deploy --- .github/workflows/deploy.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index f6a9621..ee707eb 100755 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -74,10 +74,18 @@ jobs: if: always() run: rm -f ~/.ssh/deploy_key + smoke: + name: Smoke tests (staging) + needs: deploy-staging + uses: peptiderepo/peptide-e2e/.github/workflows/smoke.yml@main + secrets: + STAGING_WP_ADMIN_USER: ${{ secrets.STAGING_WP_ADMIN_USER }} + STAGING_WP_ADMIN_PASSWORD: ${{ secrets.STAGING_WP_ADMIN_PASSWORD }} + sync-deploy-branch: name: Sync deploy branch runs-on: ubuntu-latest - needs: [test, validate, deploy-staging] + needs: [test, validate, deploy-staging, smoke] environment: production steps: - uses: actions/checkout@v4