Skip to content

Commit 6e5ef41

Browse files
Merge pull request #50 from singhxabhijeet/automated-testing
feat: Add Vitest testing framework for frontend
2 parents 0749203 + 8c860f3 commit 6e5ef41

File tree

5 files changed

+1895
-142
lines changed

5 files changed

+1895
-142
lines changed

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Frontend Tests
2+
3+
# This workflow runs ONLY on pull requests to the main and develop branches
4+
on:
5+
pull_request:
6+
branches: [ "main", "develop" ]
7+
8+
jobs:
9+
frontend-tests:
10+
name: Frontend Tests
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout repository
15+
uses: actions/checkout@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: '20.x'
21+
22+
- name: Install frontend dependencies
23+
run: npm ci
24+
working-directory: ./frontend
25+
26+
- name: Run frontend tests
27+
run: npm test
28+
working-directory: ./frontend

0 commit comments

Comments
 (0)