Skip to content

Merge pull request #240 from SenteraLLC/fix/type-expot #70

Merge pull request #240 from SenteraLLC/fix/type-expot

Merge pull request #240 from SenteraLLC/fix/type-expot #70

Workflow file for this run

name: Tests
on:
workflow_dispatch:
pull_request:
types:
- opened
- synchronize
push:
branches:
- main
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Build and run unit tests (both builds)
run: npm run build-and-test
e2e-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- name: Install dependencies
run: npm install
- name: Install Playwright browsers
run: npx playwright install --with-deps
- name: Build project
run: npm run build
- name: Run E2E tests (all browsers, both builds)
run: npm run test:e2e
- name: Upload Playwright report
uses: actions/upload-artifact@v4
if: failure()
with:
name: playwright-report
path: playwright-report/
retention-days: 30