chore: export session management functions #178
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: "Playwright for Cloudflare - Smoke Tests" | |
| on: | |
| push: | |
| jobs: | |
| test_smoke: | |
| runs-on: ubuntu-latest | |
| env: | |
| CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
| CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} | |
| TESTS_SERVER_URL: https://playwright-test-workers.cloudflare-browser-rendering-085.workers.dev | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: '20.x' | |
| registry-url: 'https://registry.npmjs.org' | |
| - run: | | |
| npm ci | |
| cd packages/playwright-cloudflare | |
| npm run build | |
| npm run test:deploy | |
| npm run test:deploy -- --env=cross-origin | |
| - name: Run Smoke Tests | |
| run: | | |
| cd packages/playwright-cloudflare | |
| npm run test:smoke -- --reporter=html | |
| - uses: actions/upload-artifact@v4 | |
| if: ${{ !cancelled() }} | |
| with: | |
| name: playwright-report | |
| path: packages/playwright-cloudflare/tests/playwright-report/ | |
| retention-days: 30 |