Skip to content

Commit

Permalink
fix(ci): fix Next.js E2Es failing since next@canary requires React 19
Browse files Browse the repository at this point in the history
  • Loading branch information
wojtekmaj authored Aug 8, 2024
1 parent a202e82 commit b78e8d8
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/e2e-next-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => <div>{text}</div>;' | tee pages/index.js
echo 'hello world!' | tee pages/text.txt
echo 'export default () => <div>Hello world!</div>;' | tee pages/index.js
yarn next build
Expand All @@ -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 () => <div>{text}</div>;' | tee pages/home.tsx
echo 'hello world!' | tee pages/text.txt
echo 'export default () => <div>Hello world!</div>;' | tee pages/index.tsx
yarn next build
if: |
Expand Down

0 comments on commit b78e8d8

Please sign in to comment.