From 2fcb6f981db6b8001fe3d29b54f9fa8204e95dcc Mon Sep 17 00:00:00 2001 From: BrickheadJohnny Date: Tue, 23 Jul 2024 10:32:42 +0200 Subject: [PATCH] feat: run workflow on successful deployment --- .github/workflows/playwright.yml | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 66cf67325c..926eac3e60 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -1,11 +1,9 @@ name: Playwright Tests on: - push: - branches: [main] - pull_request: - branches: [main] + deployment_status: jobs: test: + if: github.event_name == 'deployment_status' && github.event.deployment_status.state == 'success' timeout-minutes: 60 runs-on: ubuntu-latest steps: @@ -13,17 +11,8 @@ jobs: - uses: actions/setup-node@v4 with: node-version: lts/* - - name: Install dependencies - run: npm ci - env: - WAAS_VIEM_URL: ${{ secrets.WAAS_VIEM_URL }} - WAAS_WEB_URL: ${{ secrets.WAAS_WEB_URL }} - name: Install Playwright Browsers run: npx playwright install --with-deps - - name: Build project - run: npm run build - env: - NEXT_PUBLIC_E2E_WALLET_MNEMONIC: ${{ secrets.NEXT_PUBLIC_E2E_WALLET_MNEMONIC }} - name: Run Playwright tests run: npm run test - uses: actions/upload-artifact@v4