Skip to content

Commit

Permalink
Create frontend-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
apsinghdev authored Aug 9, 2024
1 parent b2e41e6 commit 9c4c173
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/frontend-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Frontend CI

on:
push:
branches: [ main ]
paths:
- 'client/**'
pull_request:
branches: [ main ]
paths:
- 'client/**'

jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client

steps:
- uses: actions/checkout@v2
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '>=18'
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm test
- name: Build
run: npm run build

0 comments on commit 9c4c173

Please sign in to comment.