diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8c40af0..888f5ea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,6 +35,7 @@ jobs: typecheck: name: Type Check runs-on: ubuntu-latest + if: github.event_name == 'push' steps: - uses: actions/checkout@v4 with: @@ -69,3 +70,28 @@ jobs: - name: Validate registries run: cd apps/www && bun run validate:registries + + registry-install-test: + name: Registry Install Test + runs-on: ubuntu-latest + needs: [registry] + steps: + - uses: actions/checkout@v4 + with: + token: ${{ secrets.WINOFFRG_PAT }} + submodules: recursive + + - uses: actions/setup-node@v4 + with: + node-version: 22 + + - uses: oven-sh/setup-bun@v2 + with: + bun-version: 1.2.19 + + - name: Install dependencies + run: bun install --frozen-lockfile + + - name: Run registry install tests + run: cd apps/www && bun run test:registry-install + timeout-minutes: 20 diff --git a/apps/www/package.json b/apps/www/package.json index 09feeef..72f24f1 100644 --- a/apps/www/package.json +++ b/apps/www/package.json @@ -9,6 +9,7 @@ "registry:build": "REGISTRY_HOST=https://limeplay.winoffrg.dev exec tsx --tsconfig ./tsconfig.scripts.json ./scripts/registry-dev.mts", "registry:dev": "REGISTRY_HOST=http://localhost:3000 exec tsx --tsconfig ./tsconfig.scripts.json ./scripts/registry-dev.mts --watch", "validate:registries": "bun run ./scripts/validate-registries.ts", + "test:registry-install": "bun run scripts/test-registry-install.ts", "format:write": "prettier --write \"**/*.{ts,tsx,mdx}\" --cache --config ../../prettier.config.cjs && next lint", "format:check": "prettier --check \"**/*.{ts,tsx,mdx}\" --cache --config ../../prettier.config.cjs", "install:vercel": "bash ./scripts/vercel-install.sh", diff --git a/apps/www/registry/collection/registry-blocks.ts b/apps/www/registry/collection/registry-blocks.ts index 2514b8e..990fcc1 100644 --- a/apps/www/registry/collection/registry-blocks.ts +++ b/apps/www/registry/collection/registry-blocks.ts @@ -138,7 +138,7 @@ export const blocks: Registry["items"] = [ type: "registry:component", }, { - path: `blocks/basic-player/lib/media.ts`, + path: `blocks/basic-player/lib/media-kit.ts`, type: "registry:lib", }, ], diff --git a/apps/www/registry/default/blocks/basic-player/components/media-player.tsx b/apps/www/registry/default/blocks/basic-player/components/media-player.tsx index ffa3e05..10d7d80 100644 --- a/apps/www/registry/default/blocks/basic-player/components/media-player.tsx +++ b/apps/www/registry/default/blocks/basic-player/components/media-player.tsx @@ -3,7 +3,7 @@ import React from "react" import { cn } from "@/lib/utils" import { MediaElement } from "@/registry/default/blocks/basic-player/components/media-element" import { PlaybackStateControl } from "@/registry/default/blocks/basic-player/components/playback-state-control" -import { MediaProvider } from "@/registry/default/blocks/basic-player/lib/media" +import { MediaProvider } from "@/registry/default/blocks/basic-player/lib/media-kit" import { FallbackPoster } from "@/registry/default/ui/fallback-poster" import { LimeplayLogo } from "@/registry/default/ui/limeplay-logo" import * as Layout from "@/registry/default/ui/player-layout" diff --git a/apps/www/registry/default/blocks/basic-player/components/playback-state-control.tsx b/apps/www/registry/default/blocks/basic-player/components/playback-state-control.tsx index b235d0a..b3b48c7 100644 --- a/apps/www/registry/default/blocks/basic-player/components/playback-state-control.tsx +++ b/apps/www/registry/default/blocks/basic-player/components/playback-state-control.tsx @@ -15,7 +15,7 @@ export function PlaybackStateControl() { const status = usePlaybackStore((state) => state.status) return ( -