E2E Production Monitoring #1648
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: E2E Production Monitoring | |
| on: | |
| schedule: | |
| - cron: '0 * * * *' # Every hour | |
| workflow_dispatch: | |
| jobs: | |
| e2e-prod: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.19.0 | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Install Playwright Browsers | |
| run: npx playwright install --with-deps | |
| - name: Run E2E tests against production | |
| env: | |
| VITE_API_URL: https://data-sources.pdap.io/api | |
| VITE_API_KEY: ${{ secrets.E2E_API_KEY_PROD }} | |
| E2E_TESTING_ENV: production | |
| E2E_TESTING_URL: https://pdap.io | |
| E2E_PASSWORD_AUTH_EMAIL_PROD: ${{ secrets.E2E_PASSWORD_AUTH_EMAIL_PROD }} | |
| E2E_PASSWORD_AUTH_PASSWORD_PROD: ${{ secrets.E2E_PASSWORD_AUTH_PASSWORD_PROD }} | |
| E2E_PW_RESET_EMAIL_PROD: ${{ secrets.E2E_PW_RESET_EMAIL_PROD }} | |
| E2E_SIGNUP_EMAIL_PROD: ${{ secrets.E2E_SIGNUP_EMAIL_PROD }} | |
| MAILGUN_KEY: ${{ secrets.MAILGUN_KEY }} | |
| MAILGUN_DOMAIN: ${{ secrets.MAILGUN_DOMAIN }} | |
| run: npx playwright test | |
| - uses: actions/upload-artifact@v4 | |
| if: always() | |
| with: | |
| name: playwright-report-prod | |
| path: playwright-report/ | |
| retention-days: 7 |