Skip to content

chore: add e2e testing suite using Playwright #301

chore: add e2e testing suite using Playwright

chore: add e2e testing suite using Playwright #301

Workflow file for this run

name: CI
permissions:
contents: read
on:
push:
branches: [main]
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install Parent Folder
run: npm install
- name: Ensure no package-lock.json changes
run: git diff --exit-code
- name: Build
run: npm run build
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node
uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install Parent Folder
run: npm install
- name: Test
run: npm run test
env:
CI: true
e2e-tests:
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "18.x"
- name: Install Parent Folder
run: npm install
- name: Change to E2E test folder
run: cd ./e2e
- name: Install e2e test
run: npm install
- name: Install Playwright Browsers
run: npx playwright install --with-deps
- name: Run Playwright tests
run: npm run test