mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-01-08 11:38:51 +01:00
* chore: Update VitePWA registerType to 'autoUpdate', add cache busting to static file outputs * chore: disable windows frontend workflow for now
57 lines
No EOL
1.2 KiB
YAML
57 lines
No EOL
1.2 KiB
YAML
name: Frontend Unit Tests
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
- release/*
|
|
paths:
|
|
- 'client/**'
|
|
- 'packages/**'
|
|
|
|
jobs:
|
|
tests_frontend_ubuntu:
|
|
name: Run frontend unit tests on Ubuntu
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Use Node.js 20.x
|
|
uses: actions/setup-node@v4
|
|
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: npm run test:ci --verbose
|
|
working-directory: client
|
|
|
|
# Windows job is commented out
|
|
# tests_frontend_windows:
|
|
# name: Run frontend unit tests on Windows
|
|
# timeout-minutes: 60
|
|
# runs-on: windows-latest
|
|
# steps:
|
|
# - uses: actions/checkout@v4
|
|
# - name: Use Node.js 20.x
|
|
# uses: actions/setup-node@v4
|
|
# 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: npm run test:ci --verbose
|
|
# working-directory: client |