Skip to content

Commit

Permalink
refactor into shell script & rename worflow file
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiwat10 committed May 21, 2024
1 parent a2beb72 commit 7b555d1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 32 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/create-fuels-e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: create-fuels e2e tests
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
timeout-minutes: 10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
uses: ./.github/actions/test-setup
with:
node-version: ${{ matrix.env.version || 20 }}
- name: Run e2e tests
run: sh ./scripts/create-fuels-e2e.sh
32 changes: 0 additions & 32 deletions .github/workflows/playwright.yml

This file was deleted.

5 changes: 5 additions & 0 deletions scripts/create-fuels-e2e.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(cd templates/nextjs && pnpm run fuels:dev) &
cp templates/nextjs/.env.example templates/nextjs/.env.local
(cd templates/nextjs && pnpm run dev) &
pnpm exec playwright install --with-deps
pnpm exec playwright test

0 comments on commit 7b555d1

Please sign in to comment.