Skip to content

Commit

Permalink
ci: add examples job
Browse files Browse the repository at this point in the history
  • Loading branch information
joshblack committed May 21, 2024
1 parent 289f118 commit cbca1a1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,3 +74,18 @@ jobs:
run: npm run build -- --filter './packages/*'
- name: Type check
run: npm run type-check

examples:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build project
run: npm run build
6 changes: 5 additions & 1 deletion examples/nextjs/src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import {BaseLayout} from '@primer/doctocat-nextjs'

export const metadata = {
title: 'Next.js',
description: 'Generated by Next.js',
Expand All @@ -6,7 +8,9 @@ export const metadata = {
export default function RootLayout({children}: {children: React.ReactNode}) {
return (
<html lang="en">
<body>{children}</body>
<body>
<BaseLayout>{children}</BaseLayout>
</body>
</html>
)
}

0 comments on commit cbca1a1

Please sign in to comment.