Skip to content

Commit

Permalink
fix lens next app e2e test (#918)
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu authored Apr 18, 2024
1 parent 577b645 commit 32e75d9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 33 deletions.
26 changes: 11 additions & 15 deletions .github/workflows/lens-next-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,33 +3,29 @@ name: "Lens Next App E2E Test"
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
e2e:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v3

- name: Use Node.js
uses: actions/setup-node@v4
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: "pnpm"

- name: Create a new Next.js App from the template
run: pnpm create next-app -e https://github.com/lens-protocol/lens-sdk/tree/develop/examples/lens-next-app test-app

- run: cd test-app
node-version: lts/*

- name: Install Playwright Browsers
run: pnpm exec playwright install --with-deps
run: npx playwright install --with-deps

- name: Create a new Next.js App from the template
run: npx create-next-app -e https://github.com/lens-protocol/lens-sdk/tree/develop/examples/lens-next-app test-app

- name: Run Playwright tests
run: pnpm run test:e2e
run: |
cd test-app
npm run test:e2e
- name: Upload Playwright report
uses: actions/upload-artifact@v4
Expand Down
17 changes: 0 additions & 17 deletions examples/lens-next-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,20 +17,3 @@ bun dev
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
2 changes: 1 addition & 1 deletion examples/lens-next-app/playwright.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default defineConfig({
},
/* Run your local dev server before starting the tests */
webServer: {
command: "pnpm dev",
command: "npm run dev",
url: "http://localhost:3000",
reuseExistingServer: !process.env.CI,
},
Expand Down

0 comments on commit 32e75d9

Please sign in to comment.