mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-25 20:58:50 +01:00
* Change prepare script to not run in CI mode and remove --ignore-scripts flag from workflow * add release/* to branches for workflows
34 lines
No EOL
728 B
YAML
34 lines
No EOL
728 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 19.x
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 19.x
|
|
cache: 'npm'
|
|
|
|
- name: Install dependencies
|
|
run: npm ci --ignore-scripts
|
|
|
|
- name: Build Client
|
|
run: cd client && npm run build:ci
|
|
|
|
- name: Run unit tests
|
|
run: cd client && npm run test:ci |