Skip to content

fix: fix production cookies next #3610

fix: fix production cookies next

fix: fix production cookies next #3610

Workflow file for this run

name: Node CI
on:
push:
branches: [main]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
quality:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Biome
uses: biomejs/setup-biome@v2
- name: Run Biome
run: biome ci .
build:
name: Build and Test
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-monorepo
- name: Lint
run: pnpm lint
- name: Build
run: |
cp apps/sigle-next/.env.development apps/sigle-next/.env.production.local
pnpm build
- name: Test
run: pnpm test
test-sigle-e2e:
name: Test sigle e2e
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/playwright:v1.44.0-jammy
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-monorepo
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps chromium
working-directory: apps/sigle
- name: Build
run: |
cp apps/sigle/.env.e2e apps/sigle/.env.production.local
pnpm build --filter=@sigle/app
- name: Run e2e tests
run: pnpm run test:e2e
working-directory: apps/sigle
- uses: actions/upload-artifact@v4
if: failure()
with:
name: sigle-playwright-report
path: apps/sigle/playwright-report/
retention-days: 10
test-custom-domain-e2e:
name: Test custom domain e2e
runs-on: ubuntu-22.04
container:
image: mcr.microsoft.com/playwright:v1.44.0-jammy
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-monorepo
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps chromium
working-directory: apps/custom-domain
- name: Build
run: |
cp apps/custom-domain/.env.e2e apps/custom-domain/.env.production.local
pnpm build --filter=@sigle/custom-domain
- name: Run e2e tests
run: pnpm run test:e2e
working-directory: apps/custom-domain
- uses: actions/upload-artifact@v4
if: failure()
with:
name: custom-domain-playwright-report
path: apps/custom-domain/playwright-report/
retention-days: 10
test-server-e2e:
name: Test server e2e
runs-on: ubuntu-22.04
defaults:
run:
working-directory: apps/server
services:
redis:
image: redis:6.2
# Set health checks to wait until redis has started
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
postgres:
# Docker Hub image
image: postgres:14
# Provide the password for postgres
env:
POSTGRES_USER: postgresuser
POSTGRES_PASSWORD: postgrespassword
POSTGRES_DB: postgresdb
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-monorepo
- name: Seed test DB
run: pnpm prisma migrate deploy && pnpm prisma db seed
env:
PG_DATABASE_URL: "postgres://postgresuser:postgrespassword@localhost:5432/postgresdb"
- name: Run api e2e tests
run: pnpm run test:e2e
test-contracts:
name: "Test contracts"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-monorepo
- name: "Check contract syntax"
uses: docker://hirosystems/clarinet:latest
with:
args: check --manifest-path ./apps/contracts/Clarinet.toml