mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-08-04 14:57:42 +00:00
🪟 ci: Shard Windows Frontend Unit Tests (#13651)
* 🪟 ci: Shard Windows Frontend Unit Tests Mirror the 4-way jest sharding the Ubuntu frontend test job already uses onto the Windows job, which currently runs the whole client suite in a single 20-minute job. Also drops the `--verbose` flag, which npm consumed itself (it preceded `--`) and only raised npm's own log level. * 🪟 ci: Trigger Frontend Tests on Workflow Changes
This commit is contained in:
parent
56281ece30
commit
70f7450bab
1 changed files with 8 additions and 3 deletions
11
.github/workflows/frontend-review.yml
vendored
11
.github/workflows/frontend-review.yml
vendored
|
|
@ -6,6 +6,7 @@ on:
|
|||
- 'client/**'
|
||||
- 'packages/client/**'
|
||||
- 'packages/data-provider/**'
|
||||
- '.github/workflows/frontend-review.yml'
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
|
@ -170,10 +171,14 @@ jobs:
|
|||
working-directory: client
|
||||
|
||||
test-windows:
|
||||
name: 'Tests: Windows'
|
||||
name: 'Tests: Windows (shard ${{ matrix.shard }}/4)'
|
||||
needs: build
|
||||
runs-on: windows-latest
|
||||
timeout-minutes: 20
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shard: [1, 2, 3, 4]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
|
|
@ -209,8 +214,8 @@ jobs:
|
|||
name: build-client-package
|
||||
path: packages/client/dist
|
||||
|
||||
- name: Run unit tests
|
||||
run: npm run test:ci --verbose
|
||||
- name: Run unit tests (shard ${{ matrix.shard }}/4)
|
||||
run: npm run test:ci -- --shard=${{ matrix.shard }}/4
|
||||
working-directory: client
|
||||
|
||||
build-verify:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue