Skip to content
Merged
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 4 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ on:
branches:
- main
- development
workflow_dispatch: # Allows manual triggering
workflow_dispatch:

jobs:
lint:
name: Lint
lint-types-test:
name: Lint & Types Check & Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -20,34 +20,4 @@ jobs:
with:
node-version: 20
- run: pnpm install
- run: pnpm lint

typecheck:
name: Typecheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- run: pnpm check-types

build:
name: Build
needs: [lint, typecheck]
if: github.ref == 'refs/heads/main' || github.event.pull_request.base.ref == 'main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
- run: pnpm install
- run: pnpm build
- run: pnpm lint check-types test
2 changes: 1 addition & 1 deletion apps/web/src/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import { authOptions } from "~/lib/auth";

export const revalidate = 300; // Revalidate every 5 minutes
export const fetchCache = "force-cache";
export const dynamic = "force-static";
export const dynamic = "auto";

export default async function Home() {
const recentPages = await dbService.wiki.getRecentPages(5);
Expand Down