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
4 changes: 2 additions & 2 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: "pnpm"

- name: Install dependencies
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:

- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 22
cache: "pnpm"

- name: Install dependencies
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Unit Tests

on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]

jobs:
test:
name: Run Unit Tests
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4

- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile

- name: Run unit tests
run: pnpm test

- name: Run unit tests with coverage
run: pnpm run test:coverage
if: github.event_name == 'pull_request'

- name: Upload coverage reports
uses: actions/upload-artifact@v4
if: github.event_name == 'pull_request'
with:
name: coverage-report
path: coverage/
retention-days: 7
21 changes: 13 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"format": "prettier --write .",
"format:check": "prettier --check .",
"preview": "vite preview",
"test": "vitest --config vite.config.test.ts",
"test:ui": "vitest --ui --config vite.config.test.ts",
"test:coverage": "vitest run --coverage --config vite.config.test.ts",
"test": "vitest",
"test:ui": "vitest --ui",
"test:coverage": "vitest run --coverage",
"test:e2e": "playwright test",
"test:e2e:ui": "playwright test --ui",
"test:e2e:headed": "playwright test --headed",
Expand Down Expand Up @@ -91,22 +91,27 @@
"tailwind-merge": "^2.5.2",
"tailwindcss-animate": "^1.0.7",
"vaul": "^0.9.3",
"vite-plugin-pwa": "^1.0.1",
"workbox-background-sync": "^7.3.0",
"workbox-precaching": "^7.3.0",
"workbox-routing": "^7.3.0",
"workbox-strategies": "^7.3.0",
"zod": "^3.23.8"
},
"devDependencies": {
"vite-plugin-pwa": "^1.2.0",
"@playwright/test": "^1.54.1",
"@tailwindcss/typography": "^0.5.15",
"@testing-library/jest-dom": "^6.9.1",
"@testing-library/react": "^16.3.0",
"@testing-library/user-event": "^14.6.1",
"@types/node": "^22.5.5",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.5.0",
"@vitest/ui": "^3.2.4",
"@vitejs/plugin-react-swc": "^4.2.2",
"@vitest/coverage-v8": "^4.0.15",
"@vitest/ui": "^4.0.15",
"autoprefixer": "^10.4.20",
"baseline-browser-mapping": "^2.9.5",
"globals": "^15.9.0",
"husky": "^9.1.7",
"jsdom": "^27.0.0",
Expand All @@ -118,8 +123,8 @@
"tailwindcss": "^3.4.11",
"tsx": "^4.20.3",
"typescript": "^5.5.3",
"vite": "^5.4.1",
"vitest": "^3.2.4"
"vite": "^7.2.7",
"vitest": "^4.0.15"
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
Expand Down
Loading
Loading