mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-09-22 06:00:56 +02:00
Change prepare script to not run in CI mode and remove --ignore-scripts flag from workflow (#491)
* Change prepare script to not run in CI mode and remove --ignore-scripts flag from workflow * add release/* to branches for workflows
This commit is contained in:
parent
ee52533339
commit
2003480fed
3 changed files with 18 additions and 6 deletions
12
.github/workflows/backend-review.yml
vendored
12
.github/workflows/backend-review.yml
vendored
|
@ -2,9 +2,15 @@
|
|||
name: Backend Unit Tests
|
||||
on:
|
||||
push:
|
||||
branches: [feat/playwright-jest-cicd]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
- release/*
|
||||
pull_request:
|
||||
branches: [ feat/playwright-jest-cicd ]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
- release/*
|
||||
jobs:
|
||||
tests_Backend:
|
||||
name: Run Backend unit tests
|
||||
|
@ -25,7 +31,7 @@ jobs:
|
|||
cache: 'npm'
|
||||
|
||||
- name: Install dependencies
|
||||
run: npm ci --ignore-scripts
|
||||
run: npm ci
|
||||
|
||||
# - name: Install Linux X64 Sharp
|
||||
# run: npm install --platform=linux --arch=x64 --verbose sharp
|
||||
|
|
10
.github/workflows/frontend-review.yml
vendored
10
.github/workflows/frontend-review.yml
vendored
|
@ -2,9 +2,15 @@
|
|||
name: Frontend Unit Tests
|
||||
on:
|
||||
push:
|
||||
branches: [main, dev]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
- release/*
|
||||
pull_request:
|
||||
branches: [main, dev]
|
||||
branches:
|
||||
- main
|
||||
- dev
|
||||
- release/*
|
||||
jobs:
|
||||
tests_frontend:
|
||||
name: Run frontend unit tests
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
"test:api": "cd api && npm run test",
|
||||
"e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots",
|
||||
"e2e:report": "npx playwright show-report e2e/playwright-report",
|
||||
"prepare": "husky install",
|
||||
"prepare": "test \"$NODE_ENV\" != \"CI\" && husky install",
|
||||
"format": "prettier-eslint --write \"{,!(node_modules)/**/}*.{js,jsx,ts,tsx}\""
|
||||
},
|
||||
"repository": {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue