diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fee5970..b5524c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,4 +1,4 @@ -name: CI/CD Pipeline +name: CI on: push: @@ -7,8 +7,8 @@ on: branches: [main, develop] jobs: - lint-and-test: - name: Lint and Test + ci: + name: CI runs-on: self-hosted env: PUBLIC_POSTHOG_PROJECT_TOKEN: ${{ vars.PUBLIC_POSTHOG_PROJECT_TOKEN }} @@ -32,77 +32,18 @@ jobs: - name: Install dependencies run: pnpm install --frozen-lockfile - - name: Run linter + - name: Lint run: pnpm run lint - - name: Run typecheck + - name: Typecheck run: pnpm run typecheck - - name: Run tests + - name: Test run: pnpm run test - security: - name: Security Audit - runs-on: self-hosted - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - - name: Run audit - run: pnpm audit --audit-level=moderate - continue-on-error: true - - code-quality: - name: Code Quality - runs-on: self-hosted - env: - PUBLIC_POSTHOG_PROJECT_TOKEN: ${{ vars.PUBLIC_POSTHOG_PROJECT_TOKEN }} - PUBLIC_POSTHOG_HOST: ${{ vars.PUBLIC_POSTHOG_HOST }} - - steps: - - name: Checkout code - uses: actions/checkout@v4 - - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 10 - - - name: Setup Node.js - uses: actions/setup-node@v4 - with: - node-version: '20' - cache: 'pnpm' - - - name: Install dependencies - run: pnpm install --frozen-lockfile - - name: Build run: pnpm run build - notify: - name: Notify - runs-on: self-hosted - needs: [lint-and-test, security, code-quality] - if: always() - - steps: - - name: Check status - run: | - echo "Pipeline status: ${{ job.status }}" - echo "Build completed" + - name: Audit + run: pnpm audit --audit-level=moderate + continue-on-error: true diff --git a/.svelte-kit/ambient.d.ts b/.svelte-kit/ambient.d.ts index 4e24073..dcc1835 100644 --- a/.svelte-kit/ambient.d.ts +++ b/.svelte-kit/ambient.d.ts @@ -81,7 +81,6 @@ declare module '$env/static/private' { export const OPENCODE_PROCESS_ROLE: string; export const SHLVL: string; export const HOME: string; - export const CI: string; export const HOMEBREW_PREFIX: string; export const FNM_DIR: string; export const LOGNAME: string; @@ -98,6 +97,13 @@ declare module '$env/static/private' { export const OPENCODE: string; export const COLORTERM: string; export const npm_node_execpath: string; + export const TEST: string; + export const VITEST: string; + export const NODE_ENV: string; + export const PROD: string; + export const DEV: string; + export const BASE_URL: string; + export const MODE: string; } /** @@ -134,10 +140,7 @@ declare module '$env/static/private' { * The above values will be the same _even if_ different values for `ENVIRONMENT` or `PUBLIC_BASE_URL` are set at runtime, as they are statically replaced in your code with their build time values. */ declare module '$env/static/public' { - export const PUBLIC_SUPABASE_ANON_KEY: string; - export const PUBLIC_SUPABASE_URL: string; - export const PUBLIC_POSTHOG_HOST: string; - export const PUBLIC_POSTHOG_PROJECT_TOKEN: string; + } /** @@ -230,7 +233,6 @@ declare module '$env/dynamic/private' { OPENCODE_PROCESS_ROLE: string; SHLVL: string; HOME: string; - CI: string; HOMEBREW_PREFIX: string; FNM_DIR: string; LOGNAME: string; @@ -247,6 +249,13 @@ declare module '$env/dynamic/private' { OPENCODE: string; COLORTERM: string; npm_node_execpath: string; + TEST: string; + VITEST: string; + NODE_ENV: string; + PROD: string; + DEV: string; + BASE_URL: string; + MODE: string; [key: `PUBLIC_${string}`]: undefined; [key: `${string}`]: string | undefined; } @@ -302,10 +311,6 @@ declare module '$env/dynamic/private' { */ declare module '$env/dynamic/public' { export const env: { - PUBLIC_SUPABASE_ANON_KEY: string; - PUBLIC_SUPABASE_URL: string; - PUBLIC_POSTHOG_HOST: string; - PUBLIC_POSTHOG_PROJECT_TOKEN: string; [key: `PUBLIC_${string}`]: string | undefined; } } diff --git a/.svelte-kit/generated/client/app.js b/.svelte-kit/generated/client/app.js index 83211c7..4f02e6d 100644 --- a/.svelte-kit/generated/client/app.js +++ b/.svelte-kit/generated/client/app.js @@ -1,3 +1,6 @@ +import * as client_hooks from '../../../src/hooks.client.ts'; + + export { matchers } from './matchers.js'; export const nodes = [ @@ -40,8 +43,8 @@ export const dictionary = { }; export const hooks = { - handleError: (({ error }) => { console.error(error) }), - + handleError: client_hooks.handleError || (({ error }) => { console.error(error) }), + init: client_hooks.init, reroute: (() => {}), transport: {} }; diff --git a/.svelte-kit/generated/client/nodes/1.js b/.svelte-kit/generated/client/nodes/1.js index 453cc99..7b65978 100644 --- a/.svelte-kit/generated/client/nodes/1.js +++ b/.svelte-kit/generated/client/nodes/1.js @@ -1 +1 @@ -export { default as component } from "../../../../node_modules/.pnpm/@sveltejs+kit@2.59.0_@sveltejs+vite-plugin-svelte@7.0.0_svelte@5.55.5_vite@8.0.10_@type_72ff1850efe0a9b28484ed03a4d12607/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte"; \ No newline at end of file +export { default as component } from "../../../../node_modules/.pnpm/@sveltejs+kit@2.59.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.0.0_svelte_ffcaade9fdd02ff53867e36bd9218907/node_modules/@sveltejs/kit/src/runtime/components/svelte-5/error.svelte"; \ No newline at end of file diff --git a/.svelte-kit/generated/server/internal.js b/.svelte-kit/generated/server/internal.js index 560f4ba..717b6f2 100644 --- a/.svelte-kit/generated/server/internal.js +++ b/.svelte-kit/generated/server/internal.js @@ -3,7 +3,7 @@ import root from '../root.js'; import { set_building, set_prerendering } from '__sveltekit/environment'; import { set_assets } from '$app/paths/internal/server'; import { set_manifest, set_read_implementation } from '__sveltekit/server'; -import { set_private_env, set_public_env } from '../../../node_modules/.pnpm/@sveltejs+kit@2.59.0_@sveltejs+vite-plugin-svelte@7.0.0_svelte@5.55.5_vite@8.0.10_@type_72ff1850efe0a9b28484ed03a4d12607/node_modules/@sveltejs/kit/src/runtime/shared-server.js'; +import { set_private_env, set_public_env } from '../../../node_modules/.pnpm/@sveltejs+kit@2.59.0_@opentelemetry+api@1.9.1_@sveltejs+vite-plugin-svelte@7.0.0_svelte_ffcaade9fdd02ff53867e36bd9218907/node_modules/@sveltejs/kit/src/runtime/shared-server.js'; export const options = { app_template_contains_nonce: false, @@ -25,7 +25,7 @@ export const options = { app: ({ head, body, assets, nonce, env }) => "\n\n\t
\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t" + head + "\n\t\n\t\n\t\t