Fixed page reload on network refresh #133
Workflow file for this run
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 E2E Tests" | |
on: | |
pull_request: | |
branches: [main, development] | |
paths: | |
- 'src/**' | |
- '**.js' | |
- '**.ts' | |
- '**.json' | |
repository_dispatch: | |
types: run-pptr-e2e-tests | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
jobs: | |
run-unit-tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
ref: ${{ github.ref }} | |
if: ${{ !github.event.pull_request.draft }} | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Setup yarn | |
run: npm install -g yarn | |
- name: Get node_modules cache | |
uses: actions/[email protected] | |
id: node_modules | |
with: | |
path: | | |
**/node_modules | |
key: ${{ runner.os }}-node_modules-${{ hashFiles('**/yarn.lock') }} | |
- name: Remove node_modules | |
if: steps.node_modules.outputs.cache-hit != 'true' | |
run: rm -rf node_modules | |
- name: Install Dependencies | |
uses: nick-fields/retry@v3 | |
if: steps.node_modules.outputs.cache-hit != 'true' | |
with: | |
timeout_minutes: 120 | |
retry_on: error | |
max_attempts: 5 | |
command: yarn install | |
- name: Build devnet MSW | |
run: yarn build:devnet-msw | |
- name: Run Puppeteer tests | |
run: yarn test:pptr-headless |