mirror of
https://github.com/fallenbagel/jellyseerr.git
synced 2025-12-24 02:39:18 -05:00
* chore: update nodejs to 22 in an attempt to fix undici errors This is an attempt to fix the undici errors introduced after the switch from axios to native fetch. The decision was made as it native fetch on node 20 seems to be "experimental" and > since native fetch is no longer experimental since Node 21 * chore: increase the required node version * build: update nodejs version to 22 * chore: update nodejs version to 22 * chore: update @types/node to v22 * chore(gen-docs): update the gen-docs node engine requirement to 22
39 lines
980 B
YAML
39 lines
980 B
YAML
name: Cypress Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- '*'
|
|
push:
|
|
branches:
|
|
- develop
|
|
|
|
jobs:
|
|
cypress-run:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
- name: Pnpm Setup
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 9
|
|
- name: Cypress run
|
|
uses: cypress-io/github-action@v6
|
|
with:
|
|
build: pnpm cypress:build
|
|
start: pnpm start
|
|
wait-on: 'http://localhost:5055'
|
|
record: true
|
|
env:
|
|
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
WITH_MIGRATIONS: true
|
|
# Fix test titles in cypress dashboard
|
|
COMMIT_INFO_MESSAGE: ${{github.event.pull_request.title}}
|
|
COMMIT_INFO_SHA: ${{github.event.pull_request.head.sha}}
|