Skip to content

[Fix] [Studio]: handle anonymous users in sidebar and enable guest dashboard access #90

[Fix] [Studio]: handle anonymous users in sidebar and enable guest dashboard access

[Fix] [Studio]: handle anonymous users in sidebar and enable guest dashboard access #90

Workflow file for this run

name: PR Checks
on:
pull_request:
branches: [main, master, develop]
workflow_dispatch:
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true # Future-proofs actions against Node 20 deprecation
jobs:
quality:
name: Quality & Testing
runs-on: ubuntu-latest
env:
NEXT_PUBLIC_BACKEND_URL: "http://localhost:8080/api/v1"
BACKEND_INTERNAL_URL: "http://localhost:8080/api/v1"
SITE_URL: "http://localhost:3000"
AUTH_SECRET: "dummy-secret-for-build-purposes-only"
AUTH_BASE_URL: "http://localhost:8080"
JWT_SECRET: "dummy-jwt-secret"
DATABASE_URL: "postgresql://dummy:dummy@localhost:5432/dummy"
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
cache: "npm"
cache-dependency-path: package-lock.json
- name: Install Dependencies
run: npm ci --legacy-peer-deps
- name: Mock Portfolio Template Library for CI
run: node scripts/mock-template-library.mjs
- name: Linting & Formatting
run: |
npm run lint
npm run format
- name: Prisma Generate
run: npm exec -w @veriworkly/server -- prisma generate --schema=prisma/schema.prisma
env:
DATABASE_URL: "postgresql://dummy:dummy@localhost:5432/dummy"
- name: Run Backend Tests
run: npm run test -w @veriworkly/server --if-present
- name: Run Studio Tests
run: npm run test:contracts -w @veriworkly/studio --if-present
- name: Build All Applications
run: npm run build