Skip to content

Commit

Permalink
fix lens next app e2e test
Browse files Browse the repository at this point in the history
  • Loading branch information
krzysu committed Apr 18, 2024
1 parent 577b645 commit 7137158
Showing 1 changed file with 11 additions and 15 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
cd test-app
- name: Run Playwright tests
run: pnpm run test:e2e
run: npm run test:e2e

- name: Upload Playwright report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 7137158

Please sign in to comment.