diff --git a/.github/workflows/create-fuels-e2e.yml b/.github/workflows/create-fuels-e2e.yml new file mode 100644 index 00000000000..e3569568e2c --- /dev/null +++ b/.github/workflows/create-fuels-e2e.yml @@ -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 diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml deleted file mode 100644 index 02238d5ec30..00000000000 --- a/.github/workflows/playwright.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: create-fuels e2e tests -on: - push: - branches: [master] - pull_request: - branches: [master] -jobs: - test: - timeout-minutes: 60 - 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 Fuel Node - run: (cd templates/nextjs && pnpm run fuels:dev) & - - name: Copy .env.example and create .env.local off it - run: cp templates/nextjs/.env.example templates/nextjs/.env.local - - name: Run Next.js server - run: (cd templates/nextjs && pnpm run dev) & - - name: Install Playwright Browsers - run: pnpm exec playwright install --with-deps - - name: Run Playwright tests - run: pnpm exec playwright test - - uses: actions/upload-artifact@v4 - if: always() - with: - name: playwright-report - path: playwright-report/ - retention-days: 30 diff --git a/scripts/create-fuels-e2e.sh b/scripts/create-fuels-e2e.sh new file mode 100644 index 00000000000..7d800fa4966 --- /dev/null +++ b/scripts/create-fuels-e2e.sh @@ -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 \ No newline at end of file