From d5f2538ac3edfec74c30d2c09f10461e039b557b Mon Sep 17 00:00:00 2001 From: Wojciech Maj Date: Thu, 8 Aug 2024 10:11:39 +0000 Subject: [PATCH] fix(ci): fix Next.js E2Es failing since next@canary requires React 19 --- .github/workflows/e2e-next-workflow.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/e2e-next-workflow.yml b/.github/workflows/e2e-next-workflow.yml index b3585087f321..cd6649da853e 100644 --- a/.github/workflows/e2e-next-workflow.yml +++ b/.github/workflows/e2e-next-workflow.yml @@ -27,14 +27,10 @@ jobs: yarn init # Required - yarn add next@canary react react-dom - - # Test itself - yarn add raw-loader + yarn add next@canary react@rc react-dom@rc mkdir pages - echo 'import text from "raw-loader!./text.txt"; export default () =>
{text}
;' | tee pages/index.js - echo 'hello world!' | tee pages/text.txt + echo 'export default () =>
Hello world!
;' | tee pages/index.js yarn next build @@ -44,14 +40,13 @@ jobs: yarn init # Required - yarn add typescript next@canary react react-dom @types/react @types/react-dom @types/node + yarn add typescript next@canary react@rc react-dom@rc @types/react @types/react-dom @types/node # Test itself yarn add raw-loader mkdir pages - echo 'const text = require("raw-loader!./text.txt").default; export default () =>
{text}
;' | tee pages/home.tsx - echo 'hello world!' | tee pages/text.txt + echo 'export default () =>
Hello world!
;' | tee pages/index.tsx yarn next build if: |