Skip to content

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14 #843

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14

chore(deps): Bump @tanstack/react-query from 5.90.12 to 5.90.14 #843

Workflow file for this run

name: Build
on:
push:
branches:
- main
pull_request:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma Client
run: npx prisma generate
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Run linter
run: npm run lint
build:
name: Build
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma Client
run: npx prisma generate
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Run Prisma migrations
run: npx prisma migrate deploy
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Build application
run: npm run build
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
NEXTAUTH_URL: "http://localhost:3000"
NEXTAUTH_SECRET: "test-secret-for-ci-build-at-least-32-chars-long"
PLEX_CLIENT_IDENTIFIER: "00000000-0000-0000-0000-000000000000"
test:
name: Unit Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma Client
run: npx prisma generate
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Run unit tests with coverage
run: npm run test:coverage -- --ci --reporters=default --reporters=github-actions
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v6
with:
name: coverage-report
path: coverage/
retention-days: 7
e2e:
name: E2E Tests
runs-on: ubuntu-latest
services:
postgres:
image: postgres:16
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: test_db
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Generate Prisma Client
run: npx prisma generate
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Run Prisma migrations
run: npx prisma migrate deploy
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Run Playwright E2E tests
run: npm run test:e2e
env:
DATABASE_URL: "postgresql://postgres:postgres@localhost:5432/test_db?schema=public"
NEXT_PUBLIC_APP_URL: "http://localhost:3000"
NEXTAUTH_URL: "http://localhost:3000"
NEXTAUTH_SECRET: "test-secret-for-ci-build-at-least-32-chars-long"
PLEX_CLIENT_IDENTIFIER: "00000000-0000-0000-0000-000000000000"
NEXT_PUBLIC_ENABLE_TEST_AUTH: "true"
ENABLE_TEST_AUTH: "true"
SKIP_CONNECTION_TESTS: "true"
- name: Upload Playwright report
if: always()
uses: actions/upload-artifact@v6
with:
name: playwright-report
path: playwright-report/
retention-days: 7