Skip to content

Commit 8c860f3

Browse files
feat: Add test.yml workflow for automated testing
1 parent c81d9c5 commit 8c860f3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
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)