Skip to content

[AI] Add e2e tests using Playwright #4

[AI] Add e2e tests using Playwright

[AI] Add e2e tests using Playwright #4

Workflow file for this run

name: E2E Tests
on:
pull_request:
branches:
- main
defaults:
run:
shell: bash
working-directory: ./blog
jobs:
e2e-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'
- name: Install dependencies
run: npm install
- name: Build the app
run: npm run build
- name: Start the app
run: npm start &
env:
PORT: 4321
- name: Run E2E tests
run: npm run test:e2e
- uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: playwright-report
path: playwright-report/
retention-days: 30