Skip to content

Commit f332a5d

Browse files
committed
chore: update CI timeout, add Sentry auth token, and enhance Playwright config; add Google Analytics support
1 parent f7a935b commit f332a5d

File tree

5 files changed

+33
-155
lines changed

5 files changed

+33
-155
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
web-validate:
7575
name: web-validate
7676
runs-on: ubuntu-latest
77-
timeout-minutes: 60
77+
timeout-minutes: 30
7878
env:
7979
CI: true
8080
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/optimitron_web_ci
@@ -129,6 +129,7 @@ jobs:
129129
- name: Build web app
130130
env:
131131
NODE_OPTIONS: --max-old-space-size=5632
132+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
132133
run: pnpm --filter @optimitron/web run build
133134

134135
- name: Cache Playwright browsers
@@ -210,6 +211,7 @@ jobs:
210211
env:
211212
NODE_OPTIONS: --max-old-space-size=5632
212213
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
214+
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
213215
run: pnpm dlx vercel@${VERCEL_CLI_VERSION} build --prod --token "$VERCEL_TOKEN"
214216

215217
- name: Deploy production artifact

packages/web/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@metamask/connect-evm": "^0.9.0",
3939
"@metamask/sdk": "^0.34.0",
4040
"@next-auth/prisma-adapter": "^1.0.7",
41+
"@next/third-parties": "^16.2.2",
4142
"@optimitron/agent": "workspace:^",
4243
"@optimitron/chat-ui": "workspace:^",
4344
"@optimitron/data": "workspace:^",

packages/web/playwright.config.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ const isCI = Boolean(process.env.CI);
66

77
export default defineConfig({
88
testDir: "./e2e",
9-
fullyParallel: false,
9+
fullyParallel: true,
1010
retries: 0,
11-
workers: 1,
11+
workers: isCI ? 4 : 4,
1212
reporter: isCI ? [["line"], ["html", { open: "never" }]] : "html",
1313
timeout: 120_000,
1414
snapshotPathTemplate: `${screenshotDir}/{testName}/{arg}{ext}`,

packages/web/src/app/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { Metadata } from "next";
22
import { headers } from "next/headers";
33
import { DM_Sans, Space_Mono, Source_Serif_4, Press_Start_2P, VT323, Creepster } from "next/font/google";
44
import { Analytics } from "@vercel/analytics/next";
5+
import { GoogleAnalytics } from "@next/third-parties/google";
56
import { cookieToInitialState } from "wagmi";
67
import "./globals.css";
78
import Navbar from "@/components/Navbar";
@@ -106,6 +107,9 @@ export default async function RootLayout({
106107
<GameScoreBar />
107108
</Providers>
108109
<Analytics />
110+
{process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID && (
111+
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_MEASUREMENT_ID} />
112+
)}
109113
</body>
110114
</html>
111115
);

pnpm-lock.yaml

Lines changed: 23 additions & 152 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)