Skip to content

Commit

Permalink
feat: run workflow on successful deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
BrickheadJohnny committed Jul 23, 2024
1 parent 1b1e2d9 commit 2fcb6f9
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
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:
- uses: actions/checkout@v4
- 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
Expand Down

0 comments on commit 2fcb6f9

Please sign in to comment.