Bump react-router-dom from 5.3.4 to 7.1.1 #909
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: End-to-end tests | |
on: [pull_request] | |
jobs: | |
cypress-run: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [18] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.6.5 | |
- name: Use Node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build | |
- name: Cypress install | |
run: ./node_modules/cypress/bin/cypress install | |
- name: Cypress run | |
uses: cypress-io/github-action@v4 | |
with: | |
install: false | |
# build playground | |
# build: pnpm dev:playground | |
# start playground | |
start: pnpm dev | |
command: pnpm e2e | |
# FIXME: this breaks it | |
# wait-on: 'http://localhost:5173' | |
# project: /packages/react-use-intercom | |
# after the test run completes | |
# store videos and any screenshots | |
# NOTE: screenshots will be generated only if E2E test failed | |
# thus we store screenshots only on failures | |
# Alternative: create and commit an empty cypress/screenshots folder | |
# to always have something to upload | |
- name: Upload Cypress artifacts | |
uses: actions/upload-artifact@v3 | |
if: failure() | |
with: | |
name: cypress-screenshots | |
path: ./apps/playground/cypress/screenshots |