remove cancelable from condition to prevent touch (#2654) #3680
This file contains 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: Puppeteer | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- '**' | |
env: | |
CI: true | |
jobs: | |
run: | |
name: Puppeteer | |
runs-on: ubuntu-latest | |
services: | |
browserless: | |
image: browserless/chrome:latest | |
ports: | |
- 7566:3000 | |
env: | |
CONNECTION_TIMEOUT: -1 | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Enable Corepack | |
run: corepack enable | |
- name: Set Node.js version | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install npm dependencies | |
run: yarn | |
- name: Start SSL proxy | |
run: docker run -d --rm --add-host=host.docker.internal:host-gateway -e "PORT=3000" -p 2552:443 esplo/docker-local-ssl-termination-proxy | |
- name: Build | |
run: yarn build | |
- name: Serve | |
run: yarn servebuild & | |
- name: Test | |
run: yarn test:puppeteer | |
- name: Upload snapshot diff artifact | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: __diff_output__ | |
path: src/e2e/puppeteer/__tests__/__image_snapshots__/**/__diff_output__/ | |
if-no-files-found: ignore |