playwright.yml 955 B

1234567891011121314151617181920212223242526272829303132
  1. name: Playwright Tests
  2. on:
  3. deployment_status:
  4. branches: [master]
  5. jobs:
  6. test_integration:
  7. name: Playwright Tests
  8. timeout-minutes: 60
  9. runs-on: ubuntu-latest
  10. # if: ${{ github.event.deployment_status.state == 'success' }}
  11. if: ${{ false }} # disable it for now
  12. steps:
  13. - uses: actions/checkout@v4
  14. - uses: actions/setup-node@v4
  15. with:
  16. node-version: 18
  17. cache: "yarn"
  18. - name: Install dependencies
  19. run: yarn install --frozen-lockfile
  20. - name: Install Playwright
  21. run: npx playwright install --with-deps
  22. - name: Run Playwright tests
  23. run: yarn run test:integration
  24. env:
  25. PLAYWRIGHT_TEST_BASE_URL: ${{ github.event.deployment_status.target_url }}
  26. CI: true
  27. - uses: actions/upload-artifact@v2
  28. if: always()
  29. with:
  30. name: playwright-report
  31. path: playwright-report/
  32. retention-days: 30