LibreChat/.github/workflows/frontend-review.yml
Danny Avila 600a0d15b1
fix(backend-review.yml): update Node.js version from 19.x to 20.x (#767)
fix(frontend-review.yml): update Node.js version from 19.x to 20.x
2023-08-06 13:08:23 -04:00

34 lines
No EOL
699 B
YAML

#github action to run unit tests for frontend with jest
name: Frontend Unit Tests
on:
push:
branches:
- main
- dev
- release/*
pull_request:
branches:
- main
- dev
- release/*
jobs:
tests_frontend:
name: Run frontend unit tests
timeout-minutes: 60
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 20.x
uses: actions/setup-node@v3
with:
node-version: 20
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build Client
run: npm run frontend:ci
- name: Run unit tests
run: cd client && npm run test:ci