Skip to content

Commit

Permalink
Migrate Frontend tests to a GHA Workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DharmitD committed Jun 18, 2024
1 parent 4dab191 commit 34b0ba0
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/**'
workflow_dispatch:

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 34b0ba0

Please sign in to comment.