Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 2 additions & 6 deletions .cursor/mcp.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@
"mcpServers": {
"trigger": {
"command": "npx",
"args": [
"trigger.dev@latest",
"mcp",
"--dev-only"
]
"args": ["trigger.dev@latest", "mcp", "--dev-only"]
}
}
}
}
7 changes: 4 additions & 3 deletions .cursor/rules/package-manager.mdc
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
---
description:
globs:
description:
globs:
alwaysApply: true
---

Always use bun as our package manager, example:
bun install axios
bun remove
bun run dev
bunx prisma migrate dev
pnpx prisma migrate dev
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
---
name: Report a bug
about: Any issues with the platform, unexpected behavior, etc.
title: ''
labels: ['🐛 bug']
assignees: ''
title: ""
labels: ["🐛 bug"]
assignees: ""
---

Found a bug? Please fill out the sections below. 👍
Expand Down
6 changes: 3 additions & 3 deletions .github/TESTS_README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ bun run test:e2e:report
bun run test:e2e:debug

# Run specific test file
bunx vitest specific-test.spec.ts
bunx playwright test specific-e2e.spec.ts
pnpx vitest specific-test.spec.ts
pnpx playwright test specific-e2e.spec.ts
```

## Branch Protection
Expand Down Expand Up @@ -88,7 +88,7 @@ Add these to your repository settings → Secrets and variables → Actions:
## Maintenance

- Workflows use `ubuntu-latest-custom` runner
- Update Playwright browsers monthly: `bunx playwright install`
- Update Playwright browsers monthly: `pnpx playwright install`
- Check for action updates quarterly
- Review test performance weekly

Expand Down
10 changes: 5 additions & 5 deletions .github/actions/bun-install/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
# - node_modules directory #
########################################################################################

name: 'Bun install'
description: 'Run bun install with cache enabled'
name: "Bun install"
description: "Run bun install with cache enabled"
inputs:
node_version:
description: 'Node.js version to use'
description: "Node.js version to use"
required: false
default: v20.x

runs:
using: 'composite'
using: "composite"
steps:
- name: Use Node ${{ inputs.node_version }}
uses: buildjet/setup-node@v4
Expand All @@ -41,7 +41,7 @@ runs:
id: bun-nm-cache
uses: buildjet/cache@v4
with:
path: '**/node_modules/'
path: "**/node_modules/"
key: ${{ runner.os }}-bun-nm-cache-${{ hashFiles('bun.lockb', 'package.json') }}

- name: Install dependencies
Expand Down
4 changes: 2 additions & 2 deletions .github/actions/dangerous-git-checkout/action.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Dangerous git Checkout
description: 'Git Checkout from PR code so we can run checks from forks'
description: "Git Checkout from PR code so we can run checks from forks"
runs:
using: 'composite'
using: "composite"
steps:
- name: Checkout repo
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2
updates:
- package-ecosystem: npm
directory: '/'
directory: "/"
schedule:
interval: daily
target-branch: 'main'
target-branch: "main"
open-pull-requests-limit: 3
6 changes: 3 additions & 3 deletions .github/workflows/auto-pr-to-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
uses: repo-sync/pull-request@v2
continue-on-error: true
with:
destination_branch: 'release'
destination_branch: "release"
github_token: ${{ secrets.GITHUB_TOKEN }}
pr_label: 'prod-deploy,automated-pr'
pr_title: '[${{ github.event.repository.name }}] Production Deploy'
pr_label: "prod-deploy,automated-pr"
pr_title: "[${{ github.event.repository.name }}] Production Deploy"
pr_body: |
This is an automated pull request to release the candidate branch into production, which will trigger a deployment.
It was created by the [Production PR] action.
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/database-migrations-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_DEV }}
working-directory: packages/db
run: bunx prisma migrate deploy
run: pnpx prisma migrate deploy
2 changes: 1 addition & 1 deletion .github/workflows/database-migrations-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ jobs:
env:
DATABASE_URL: ${{ secrets.DATABASE_URL_PROD }}
working-directory: packages/db
run: bunx prisma migrate deploy
run: pnpx prisma migrate deploy
4 changes: 2 additions & 2 deletions .github/workflows/trigger-tasks-deploy-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: bun install --frozen-lockfile --ignore-scripts
- name: Generate Prisma client
working-directory: ./packages/db
run: bunx prisma generate
run: pnpx prisma generate
- name: 🚀 Deploy Trigger.dev
working-directory: ./apps/app
timeout-minutes: 20
Expand All @@ -36,4 +36,4 @@ jobs:
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bunx trigger.dev@4.0.6 deploy --env staging --log-level debug
run: pnpx trigger.dev@4.0.6 deploy --env staging --log-level debug
4 changes: 2 additions & 2 deletions .github/workflows/trigger-tasks-deploy-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- name: Generate Prisma client
working-directory: ./packages/db
run: bunx prisma generate
run: pnpx prisma generate

- name: 🚀 Deploy Trigger.dev
working-directory: ./apps/app
Expand All @@ -40,4 +40,4 @@ jobs:
VERCEL_ACCESS_TOKEN: ${{ secrets.VERCEL_ACCESS_TOKEN }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
VERCEL_TEAM_ID: ${{ secrets.VERCEL_TEAM_ID }}
run: bunx trigger.dev@4.0.6 deploy
run: pnpx trigger.dev@4.0.6 deploy
30 changes: 15 additions & 15 deletions .github/workflows_disabled/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ on:
- main # Feature branches -> main
- release # main -> release (production)
paths:
- 'apps/**'
- 'packages/**'
- '!**/*.md'
- '.github/workflows/e2e-tests.yml'
- "apps/**"
- "packages/**"
- "!**/*.md"
- ".github/workflows/e2e-tests.yml"
push: # Also runs AFTER merge to main/release
branches:
- main
Expand Down Expand Up @@ -93,13 +93,13 @@ jobs:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
run: |
cd packages/db
bunx prisma migrate deploy
bunx prisma db seed || true # Allow seed to fail
pnpx prisma migrate deploy
pnpx prisma db seed || true # Allow seed to fail

- name: Generate Prisma client
run: |
cd packages/db
bunx prisma generate
pnpx prisma generate

- name: Get Playwright version
id: playwright-version
Expand All @@ -111,7 +111,7 @@ jobs:
echo "version=$PLAYWRIGHT_VERSION" >> $GITHUB_OUTPUT

# Also get Playwright's internal browser versions for better cache key
BROWSER_VERSIONS=$(bunx playwright --version | head -1 || echo "unknown")
BROWSER_VERSIONS=$(pnpx playwright --version | head -1 || echo "unknown")
echo "Browser versions: $BROWSER_VERSIONS"
echo "browser_versions=$BROWSER_VERSIONS" >> $GITHUB_OUTPUT

Expand All @@ -133,14 +133,14 @@ jobs:
# Always run install - Playwright will skip downloading browsers that already exist
# This is the safest approach to ensure browsers are properly installed
echo "Installing Playwright browsers (will skip if already cached)..."
bunx playwright install chromium firefox webkit
pnpx playwright install chromium firefox webkit

- name: Install Playwright system dependencies
run: |
cd apps/app
# Install system dependencies separately - this is always needed on Ubuntu runners
echo "Installing system dependencies..."
bunx playwright install-deps chromium firefox webkit
pnpx playwright install-deps chromium firefox webkit

- name: Verify Playwright installation
run: |
Expand All @@ -163,7 +163,7 @@ jobs:

# Check Playwright's own cache directory
echo "Playwright cache home:"
cd apps/app && bunx playwright install --help | grep -i cache || true
cd apps/app && pnpx playwright install --help | grep -i cache || true

# Show disk usage
echo "Disk usage of cache directories:"
Expand All @@ -179,13 +179,13 @@ jobs:
ls -la ~/.cache/ms-playwright 2>/dev/null || echo "~/.cache/ms-playwright not found"
du -sh ~/.cache/ms-playwright 2>/dev/null || echo "Cannot check size"
echo "Playwright browsers installed:"
cd apps/app && bunx playwright --version
cd apps/app && pnpx playwright --version

- name: Build app
run: |
cd apps/app
export E2E_TEST_MODE=true
bunx next build
pnpx next build
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
NEXTAUTH_URL: http://localhost:3000
Expand Down Expand Up @@ -285,7 +285,7 @@ jobs:
run: |
cd apps/app
echo "Starting E2E tests for ${{ matrix.project }} with 2 workers..."
bunx playwright test --project=${{ matrix.project }}
pnpx playwright test --project=${{ matrix.project }}
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db
NEXTAUTH_URL: http://localhost:3000
Expand Down Expand Up @@ -366,7 +366,7 @@ jobs:
echo "" >> $GITHUB_STEP_SUMMARY
echo "Or run locally:" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`bash" >> $GITHUB_STEP_SUMMARY
echo "bunx playwright show-trace path/to/trace.zip" >> $GITHUB_STEP_SUMMARY
echo "pnpx playwright show-trace path/to/trace.zip" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
fi

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows_disabled/quick-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ jobs:
- name: Generate Prisma client
run: |
cd packages/db
bunx prisma generate
pnpx prisma generate

- name: Run database migrations
run: |
cd packages/db
bunx prisma migrate deploy
pnpx prisma migrate deploy
env:
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/test_db

- name: Run quick tests
run: |
cd apps/app
bunx vitest run src/middleware.test.ts src/lib/__tests__/
pnpx vitest run src/middleware.test.ts src/lib/__tests__/
env:
CI: true
MOCK_REDIS: true
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows_disabled/test-quick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
- name: Generate Prisma Client
run: |
cd packages/db
bunx prisma generate
pnpx prisma generate

- name: Type check
run: |
Expand All @@ -73,7 +73,7 @@ jobs:
- name: Run middleware tests (smoke test)
run: |
cd apps/app
bunx vitest middleware.test.ts --run
pnpx vitest middleware.test.ts --run
env:
CI: true
AUTH_SECRET: test-auth-secret-for-ci
Expand All @@ -83,7 +83,7 @@ jobs:
run: |
cd apps/app
# Quick build check without full optimization
bunx next build --experimental-build-mode=compile
pnpx next build --experimental-build-mode=compile
env:
SKIP_ENV_VALIDATION: true
DATABASE_URL: postgresql://dummy:dummy@localhost:5432/dummy
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows_disabled/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ on:
- main # Feature branches -> main
- release # main -> release (production)
paths:
- 'apps/**'
- 'packages/**'
- '!**/*.md'
- "apps/**"
- "packages/**"
- "!**/*.md"
push: # Also runs AFTER merge to main/release
branches:
- main
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
- name: Generate Prisma Client
run: |
cd packages/db
bunx prisma generate
pnpx prisma generate

- name: Run unit tests for ${{ matrix.app }}
run: |
Expand Down
16 changes: 0 additions & 16 deletions .prettierrc

This file was deleted.

Loading
Loading