From 85f77ce347803ebffd9546613f9f264ee9f49d78 Mon Sep 17 00:00:00 2001 From: JohnAlbin Date: Thu, 22 Feb 2024 23:38:28 +0800 Subject: [PATCH] ci(next-drupal): run code formatting/linting on full monorepo --- .github/workflows/next-drupal.yml | 4 ++-- examples/example-blog/components/meta.tsx | 6 +++++- examples/example-graphql/pages/[...slug].tsx | 6 +++++- examples/example-marketing/components/meta.tsx | 6 +++++- examples/example-umami/components/meta.tsx | 6 +++++- 5 files changed, 22 insertions(+), 6 deletions(-) diff --git a/.github/workflows/next-drupal.yml b/.github/workflows/next-drupal.yml index 0f1c132c..c937f531 100644 --- a/.github/workflows/next-drupal.yml +++ b/.github/workflows/next-drupal.yml @@ -14,10 +14,10 @@ jobs: with: ref: ${{github.event.pull_request.head.ref}} repository: ${{github.event.pull_request.head.repo.full_name}} - - name: Install modules + - name: Install packages run: yarn - name: Run tests - run: yarn workspace next-drupal test + run: yarn test env: DRUPAL_BASE_URL: ${{ secrets.DRUPAL_BASE_URL }} DRUPAL_USERNAME: ${{ secrets.DRUPAL_USERNAME }} diff --git a/examples/example-blog/components/meta.tsx b/examples/example-blog/components/meta.tsx index a7defa23..8ec3172a 100644 --- a/examples/example-blog/components/meta.tsx +++ b/examples/example-blog/components/meta.tsx @@ -48,7 +48,11 @@ export function Meta({ title, tags }: MetaProps) { content={`${process.env.NEXT_PUBLIC_BASE_URL}/images/meta.jpg`} /> - + )} diff --git a/examples/example-graphql/pages/[...slug].tsx b/examples/example-graphql/pages/[...slug].tsx index 34cccf20..5d963ce6 100644 --- a/examples/example-graphql/pages/[...slug].tsx +++ b/examples/example-graphql/pages/[...slug].tsx @@ -12,7 +12,11 @@ export default function NodePage({ resource }) { {resource.title} - + {resource && } diff --git a/examples/example-marketing/components/meta.tsx b/examples/example-marketing/components/meta.tsx index a7defa23..8ec3172a 100644 --- a/examples/example-marketing/components/meta.tsx +++ b/examples/example-marketing/components/meta.tsx @@ -48,7 +48,11 @@ export function Meta({ title, tags }: MetaProps) { content={`${process.env.NEXT_PUBLIC_BASE_URL}/images/meta.jpg`} /> - + )} diff --git a/examples/example-umami/components/meta.tsx b/examples/example-umami/components/meta.tsx index 10d569c3..17658d5e 100644 --- a/examples/example-umami/components/meta.tsx +++ b/examples/example-umami/components/meta.tsx @@ -21,7 +21,11 @@ export function Meta({ title, description }: MetaProps) { href={absoluteURL(router.asPath !== "/" ? router.asPath : "")} /> {`${title} | ${siteConfig.name}`} - +