diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 396a9cd..780a338 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 diff --git a/apps/web/src/app/page.tsx b/apps/web/src/app/page.tsx index 89fff54..a98afe1 100644 --- a/apps/web/src/app/page.tsx +++ b/apps/web/src/app/page.tsx @@ -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);