Skip to content

Commit f97c967

Browse files
committed
Migrate Frontend tests to a GHA Workflow
Signed-off-by: ddalvi <ddalvi@redhat.com>
1 parent 4dab191 commit f97c967

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/frontend.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Frontend Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
paths:
11+
- 'frontend/**'
12+
workflow_dispatch:
13+
14+
jobs:
15+
frontend-tests:
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
22+
- name: Set up Node.js
23+
uses: actions/setup-node@v3
24+
with:
25+
node-version: '14'
26+
27+
- name: Clean npm cache
28+
run: npm cache clean --force
29+
30+
- name: Install dependencies
31+
run: cd ./frontend && npm ci
32+
33+
- name: Run Frontend Tests
34+
run: cd ./frontend && npm run test:ci
35+

0 commit comments

Comments
 (0)