Skip to content

Commit 345ddf3

Browse files
committed
init gumboard fork
1 parent 17f06e0 commit 345ddf3

132 files changed

Lines changed: 27836 additions & 2 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.cursorrules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Please follow the contributing guidelines at https://github.com/antiwork/.github/blob/main/CONTRIBUTING.md
2+
3+
This includes pull request standards, coding style guidelines, and issue reporting procedures.

.env.example

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
AUTH_SECRET=sample-auth-secret
2+
AUTH_RESEND_KEY=re_sample_key
3+
EMAIL_FROM=onboarding@resend.dev
4+
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/Coldboard
5+
6+
GOOGLE_CLIENT_ID=your_google-client_id
7+
GOOGLE_CLIENT_SECRET=your_google-client_secret
8+
GITHUB_CLIENT_ID=your_github_client_id
9+
GITHUB_CLIENT_SECRET=your_github_client_secret
10+
AUTH_URL=http://localhost:3000

.github/copilot-instructions.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Copilot Instructions for Coldboard
2+
3+
Please follow the contributing guidelines at https://github.com/antiwork/.github/blob/main/CONTRIBUTING.md
4+
5+
This includes pull request standards, coding style guidelines, and issue reporting procedures specific to the antiwork organization.

.github/workflows/autofix.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: autofix.ci
2+
3+
on:
4+
pull_request:
5+
permissions:
6+
contents: read
7+
8+
concurrency:
9+
group: ${{ github.workflow }}-${{ github.ref }}
10+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
11+
12+
jobs:
13+
autofix:
14+
runs-on: ubicloud-standard-2
15+
env:
16+
GITHUB_CLIENT_ID: dummy-client-id
17+
GITHUB_CLIENT_SECRET: dummy-client-secret
18+
AUTH_SECRET: sample-auth-secret
19+
AUTH_URL: http://localhost:3000
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- uses: actions/setup-node@v4
25+
with:
26+
node-version: 20
27+
cache: "npm"
28+
29+
- run: npm ci
30+
31+
- name: Generate Prisma Client
32+
run: npm run db:generate
33+
shell: bash
34+
35+
- name: Lint
36+
run: npm run lint
37+
shell: bash
38+
39+
- name: Format
40+
run: npm run format
41+
shell: bash
42+
43+
- name: Typecheck
44+
run: npm run lint:tsc
45+
shell: bash
46+
47+
- uses: autofix-ci/action@ff86a557419858bb967097bfc916833f5647fa8c

.github/workflows/build.yml

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: Build
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
13+
14+
jobs:
15+
build:
16+
runs-on: ubicloud-standard-4
17+
18+
services:
19+
postgres:
20+
image: postgres:15
21+
env:
22+
POSTGRES_PASSWORD: postgres
23+
POSTGRES_USER: postgres
24+
POSTGRES_DB: Coldboard_test
25+
options: >-
26+
--health-cmd pg_isready
27+
--health-interval 10s
28+
--health-timeout 5s
29+
--health-retries 5
30+
ports:
31+
- 5432:5432
32+
33+
env:
34+
GITHUB_CLIENT_ID: dummy-client-id
35+
GITHUB_CLIENT_SECRET: dummy-client-secret
36+
AUTH_SECRET: sample-auth-secret
37+
AUTH_URL: http://localhost:3000
38+
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/Coldboard_test
39+
EMAIL_FROM: noreply@example.com
40+
AUTH_RESEND_KEY: dummy-resend-key
41+
42+
steps:
43+
- name: Checkout code
44+
uses: actions/checkout@v4
45+
46+
- name: Setup Node.js
47+
uses: actions/setup-node@v4
48+
with:
49+
node-version: 20
50+
cache: "npm"
51+
52+
- name: Install dependencies
53+
run: npm ci
54+
55+
- name: Set up database schema
56+
run: |
57+
npx prisma migrate deploy
58+
npx prisma generate
59+
60+
- name: Build Next.js application
61+
run: npm run build
62+
63+
- name: Check build output
64+
run: |
65+
if [ ! -d ".next" ]; then
66+
echo "Error: .next directory not found after build"
67+
exit 1
68+
fi
69+
echo "✅ Build completed successfully"
70+
echo "Build artifacts:"
71+
ls -la .next/

.github/workflows/ci.yml

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
15+
16+
jobs:
17+
test:
18+
runs-on: ubicloud-standard-4
19+
env:
20+
GITHUB_CLIENT_ID: dummy-client-id
21+
GITHUB_CLIENT_SECRET: dummy-client-secret
22+
AUTH_SECRET: sample-auth-secret
23+
AUTH_URL: http://localhost:3000
24+
DATABASE_URL: postgresql://dummy:dummy@localhost:5432/dummy_db
25+
EMAIL_FROM: noreply@example.com
26+
AUTH_RESEND_KEY: dummy-resend-key
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: "npm"
35+
36+
- run: npm ci
37+
38+
- name: Test
39+
run: npm test
40+
41+
- name: Cache Playwright Browsers
42+
id: playwright-cache
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/.cache/ms-playwright
46+
key: ${{ runner.os }}-playwright-chromium-${{ hashFiles('package-lock.json') }}
47+
restore-keys: |
48+
${{ runner.os }}-playwright-chromium-
49+
50+
- name: Install Playwright Browsers
51+
if: steps.playwright-cache.outputs.cache-hit != 'true'
52+
run: npx playwright install chromium --only-shell
53+
54+
- name: E2E Tests
55+
run: npm run test:e2e
56+
57+
- uses: actions/upload-artifact@v4
58+
if: always()
59+
with:
60+
name: playwright-report
61+
path: playwright-report/
62+
retention-days: 30

.gitignore

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.*
7+
.yarn/*
8+
!.yarn/patches
9+
!.yarn/plugins
10+
!.yarn/releases
11+
!.yarn/versions
12+
13+
# testing
14+
/coverage
15+
/test-results/
16+
/playwright-report/
17+
18+
# next.js
19+
/.next/
20+
/out/
21+
22+
# production
23+
/build
24+
25+
# misc
26+
.DS_Store
27+
*.pem
28+
29+
# debug
30+
npm-debug.log*
31+
yarn-debug.log*
32+
yarn-error.log*
33+
.pnpm-debug.log*
34+
35+
# env files (can opt-in for committing if needed)
36+
.env
37+
38+
# vercel
39+
.vercel
40+
41+
# typescript
42+
*.tsbuildinfo
43+
next-env.d.ts
44+
.env*.local

.prettierignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# Dependencies
2+
node_modules/
3+
.next/
4+
.turbo/
5+
6+
# Production builds
7+
dist/
8+
build/
9+
out/
10+
11+
# Database
12+
prisma/migrations/
13+
14+
# Test artifacts
15+
test-results/
16+
playwright-report/
17+
coverage/
18+
19+
# Environment files
20+
.env*
21+
22+
# Logs
23+
*.log
24+
npm-debug.log*
25+
26+
# OS generated files
27+
.DS_Store
28+
Thumbs.db
29+
30+
# IDE files
31+
.vscode/
32+
.idea/
33+
34+
# Package lock files
35+
package-lock.json
36+
yarn.lock
37+
pnpm-lock.yaml
38+
39+
# Generated files
40+
*.d.ts
41+
!src/**/*.d.ts
42+
43+
# Documentation that might have special formatting
44+
README.md
45+
CONTRIBUTING.md
46+
LICENSE.md
47+
48+
# Configuration files that might have special formatting
49+
*.config.js
50+
*.config.ts
51+
*.config.mjs

.prettierrc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"semi": true,
3+
"useTabs": false,
4+
"singleQuote": false,
5+
"printWidth": 100,
6+
"trailingComma": "es5",
7+
"bracketSpacing": true,
8+
"arrowParens": "always",
9+
"jsxSingleQuote": false,
10+
"endOfLine": "lf"
11+
}

CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Contributing to Coldboard
2+
3+
Please see the main contributing guidelines at https://github.com/antiwork/.github/blob/main/CONTRIBUTING.md

0 commit comments

Comments
 (0)