Skip to content

Commit

Permalink
test: Migrate Frontend tests to a GHA Workflow (#10972)
Browse files Browse the repository at this point in the history
Signed-off-by: ddalvi <[email protected]>
  • Loading branch information
DharmitD authored Jul 1, 2024
1 parent 568777d commit 2fb4922
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/frontend.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Frontend Tests

on:
push:
branches:
- master
pull_request:
branches:
- master
paths:
- 'frontend/**'
- '.github/workflows/frontend.yml'

jobs:
frontend-tests:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '14'

- name: Clean npm cache
run: npm cache clean --force

- name: Install dependencies
run: cd ./frontend && npm ci

- name: Run Frontend Tests
run: cd ./frontend && npm run test:ci

0 comments on commit 2fb4922

Please sign in to comment.