diff --git a/.github/workflows/module.yml b/.github/workflows/module.yml index 7df5b68a..fb9e35a2 100644 --- a/.github/workflows/module.yml +++ b/.github/workflows/module.yml @@ -69,6 +69,53 @@ jobs: if: matrix.os == 'ubuntu-latest' run: pnpx pkg-pr-new publish --compact --no-template --pnpm + playground: + needs: build + + runs-on: ${{ matrix.os }} + + defaults: + run: + working-directory: ./playground + + permissions: + contents: read + pull-requests: read + + strategy: + matrix: + os: [ubuntu-latest] # macos-latest, windows-latest + node: [22] + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Store commit SHA + run: | + echo "COMMIT_SHA=$(echo ${{ github.workflow_sha }} | cut -c1-7)" >> $GITHUB_ENV + + - name: Install pnpm + uses: pnpm/action-setup@v4 + + - name: Install node + uses: actions/setup-node@v4 + with: + node-version: 22 + cache: pnpm + + - name: Install latest nuxt/ui + run: pnpm install https://pkg.pr.new/@nuxt/ui@${{ env.COMMIT_SHA }} --lockfile-only + + - name: Install dependencies + run: pnpm install --ignore-workspace + + - name: Prepare + run: pnpm nuxi prepare + + - name: Typecheck + run: pnpm run typecheck + starter-nuxt: needs: build diff --git a/package.json b/package.json index 1e13a456..61b53d9e 100644 --- a/package.json +++ b/package.json @@ -207,6 +207,7 @@ "chokidar": "3.6.0", "debug": "4.3.7", "rollup": "4.34.9", + "unimport": "4.1.1", "unplugin": "^2.3.2" }, "pnpm": { diff --git a/playground/app/pages/components/carousel.vue b/playground/app/pages/components/carousel.vue index a3d17576..ec78eefd 100644 --- a/playground/app/pages/components/carousel.vue +++ b/playground/app/pages/components/carousel.vue @@ -28,7 +28,12 @@ const bind = computed(() => ({ dots: dots.value })) -const items = Array.from({ length: 6 }).map((_, index) => index) +const items = Array.from({ length: 6 }).map((_, index) => ({ + id: index, + title: `Item ${index + 1}`, + description: `Description for item ${index + 1}`, + src: `https://picsum.photos/640/640?v=${index}` +}))