Skip to content

Bump @types/node from 18.11.19 to 22.10.1 #892

Bump @types/node from 18.11.19 to 22.10.1

Bump @types/node from 18.11.19 to 22.10.1 #892

Workflow file for this run

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