mirror of
https://github.com/danny-avila/LibreChat.git
synced 2025-12-16 16:30:15 +01: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
|
name: Backend Unit Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [feat/playwright-jest-cicd]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ feat/playwright-jest-cicd ]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
jobs:
|
jobs:
|
||||||
tests_Backend:
|
tests_Backend:
|
||||||
name: Run Backend unit tests
|
name: Run Backend unit tests
|
||||||
|
|
@ -25,7 +31,7 @@ jobs:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci --ignore-scripts
|
run: npm ci
|
||||||
|
|
||||||
# - name: Install Linux X64 Sharp
|
# - name: Install Linux X64 Sharp
|
||||||
# run: npm install --platform=linux --arch=x64 --verbose 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
|
name: Frontend Unit Tests
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, dev]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [main, dev]
|
branches:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
|
- release/*
|
||||||
jobs:
|
jobs:
|
||||||
tests_frontend:
|
tests_frontend:
|
||||||
name: Run frontend unit tests
|
name: Run frontend unit tests
|
||||||
|
|
|
||||||
|
|
@ -21,7 +21,7 @@
|
||||||
"test:api": "cd api && npm run test",
|
"test:api": "cd api && npm run test",
|
||||||
"e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots",
|
"e2e:update": "playwright test --config=e2e/playwright.config.js --update-snapshots",
|
||||||
"e2e:report": "npx playwright show-report e2e/playwright-report",
|
"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}\""
|
"format": "prettier-eslint --write \"{,!(node_modules)/**/}*.{js,jsx,ts,tsx}\""
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue