Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: web-tests

on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
unit:
name: Web unit tests
runs-on: ubuntu-latest
defaults:
run:
working-directory: apps/web

steps:
- name: Checkout code
uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 10
run_install: false


- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: apps/web/pnpm-lock.yaml

- name: Install dependencies
run: pnpm install

- name: Run playwright install
run: pnpm exec playwright install

- name: Run tests
run: pnpm test

5 changes: 5 additions & 0 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
"dev": "vite --host 0.0.0.0",
"build": "tsc -b && vite build",
"lint": "eslint .",
"test": "vitest run",
"test-cover": "vitest run --coverage",
"preview": "vite preview",
"prepare": "cd ../.. && husky ./apps/web/.husky",
"format": "prettier --write . && git add --all",
Expand Down Expand Up @@ -46,6 +48,8 @@
"@storybook/react-vite": "^8.6.12",
"@storybook/test": "^8.6.12",
"@tanstack/router-plugin": "^1.120.2",
"@testing-library/jest-dom": "^6.6.3",
"@testing-library/react": "^16.3.0",
"@types/node": "^22.15.15",
"@types/react": "^19.1.2",
"@types/react-dom": "^19.1.2",
Expand All @@ -58,6 +62,7 @@
"eslint-plugin-storybook": "^0.12.0",
"globals": "^16.0.0",
"husky": "^9.1.7",
"jsdom": "^26.1.0",
"lint-staged": "^15.5.2",
"playwright": "^1.52.0",
"prettier": "3.5.3",
Expand Down
Loading
Loading