Skip to content

Commit e8c987b

Browse files
author
Skalski
committed
test: ✅ add basic test cases for frontend
1 parent 3976666 commit e8c987b

6 files changed

Lines changed: 3367 additions & 193 deletions

File tree

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,3 +83,33 @@ jobs:
8383
export PYTHONPATH=$(pwd)
8484
export WEBUI_API_KEY="test_key_for_ci"
8585
pytest tests/ -v
86+
87+
test-frontend:
88+
name: Run Frontend Tests
89+
runs-on: ubuntu-latest
90+
91+
steps:
92+
- name: Checkout code
93+
uses: actions/checkout@v4
94+
95+
- name: Set up Node.js
96+
uses: actions/setup-node@v4
97+
with:
98+
node-version: "18"
99+
cache: "npm"
100+
cache-dependency-path: frontend/client-vue/package-lock.json
101+
102+
- name: Install dependencies
103+
run: |
104+
cd frontend/client-vue
105+
npm ci
106+
107+
- name: Run frontend tests
108+
run: |
109+
cd frontend/client-vue
110+
npm run test:run
111+
112+
- name: Build frontend
113+
run: |
114+
cd frontend/client-vue
115+
npm run build

0 commit comments

Comments
 (0)