mirror of
https://github.com/IT4Change/gradido.git
synced 2026-04-06 01:25:28 +00:00
fix ci errors
This commit is contained in:
parent
0cb4f5fb69
commit
68e09d432f
17
.github/workflows/test_backend.yml
vendored
17
.github/workflows/test_backend.yml
vendored
@ -92,19 +92,4 @@ jobs:
|
|||||||
bun install --global --no-save turbo@^2
|
bun install --global --no-save turbo@^2
|
||||||
|
|
||||||
- name: Backend | Typecheck
|
- name: Backend | Typecheck
|
||||||
run: turbo backend#typecheck backend#build
|
run: turbo backend#typecheck backend#build
|
||||||
|
|
||||||
locales:
|
|
||||||
if: needs.files-changed.outputs.backend == 'true'
|
|
||||||
name: Locales - Backend
|
|
||||||
needs: files-changed
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: install bun
|
|
||||||
uses: oven-sh/setup-bun@v2
|
|
||||||
|
|
||||||
- name: Backend | Locales
|
|
||||||
run: cd backend && bun locales
|
|
||||||
15
.github/workflows/test_core.yml
vendored
15
.github/workflows/test_core.yml
vendored
@ -43,3 +43,18 @@ jobs:
|
|||||||
- name: typecheck && unit test
|
- name: typecheck && unit test
|
||||||
run: turbo core#test core#typecheck
|
run: turbo core#test core#typecheck
|
||||||
|
|
||||||
|
locales:
|
||||||
|
if: needs.files-changed.outputs.core == 'true'
|
||||||
|
name: Locales - Core
|
||||||
|
needs: files-changed
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
- name: install bun
|
||||||
|
uses: oven-sh/setup-bun@v2
|
||||||
|
|
||||||
|
- name: Core | Locales
|
||||||
|
run: cd core && bun locales
|
||||||
|
|
||||||
|
|||||||
@ -114,8 +114,7 @@ COPY --chown=app:app --from=build ${DOCKER_WORKDIR}/backend/build/worker.js ./wo
|
|||||||
# add node_modules from production_node_modules
|
# add node_modules from production_node_modules
|
||||||
COPY --chown=app:app --from=production-node-modules ${DOCKER_WORKDIR}/node_modules ./node_modules
|
COPY --chown=app:app --from=production-node-modules ${DOCKER_WORKDIR}/node_modules ./node_modules
|
||||||
|
|
||||||
# Copy locales
|
COPY --chown=app:app --from=build ${DOCKER_WORKDIR}/core/build/templates ./templates
|
||||||
COPY --chown=app:app --from=build ${DOCKER_WORKDIR}/backend/locales ./locales
|
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
"author": "Gradido Academy - https://www.gradido.net",
|
"author": "Gradido Academy - https://www.gradido.net",
|
||||||
"main": "src/index.ts",
|
"main": "src/index.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ts-node ./esbuild.config.ts && mkdirp build/templates/ && ncp ../core/src/emails/templates build/templates",
|
"build": "ts-node ./esbuild.config.ts && mkdirp build/templates/ && ncp ../core/build/templates build/templates",
|
||||||
"dev": "cross-env TZ=UTC nodemon -w src --ext ts,pug,json,css -r tsconfig-paths/register src/index.ts",
|
"dev": "cross-env TZ=UTC nodemon -w src --ext ts,pug,json,css -r tsconfig-paths/register src/index.ts",
|
||||||
"test": "cross-env TZ=UTC NODE_ENV=development DB_DATABASE=gradido_test_backend jest --runInBand --forceExit --detectOpenHandles",
|
"test": "cross-env TZ=UTC NODE_ENV=development DB_DATABASE=gradido_test_backend jest --runInBand --forceExit --detectOpenHandles",
|
||||||
"test:coverage": "cross-env TZ=UTC NODE_ENV=development DB_DATABASE=gradido_test_backend jest --coverage --runInBand --forceExit --detectOpenHandles",
|
"test:coverage": "cross-env TZ=UTC NODE_ENV=development DB_DATABASE=gradido_test_backend jest --coverage --runInBand --forceExit --detectOpenHandles",
|
||||||
|
|||||||
@ -116,5 +116,7 @@ COPY --chown=app:app --from=build ${DOCKER_WORKDIR}/federation/build/index.js ./
|
|||||||
# add node_modules from production_node_modules
|
# add node_modules from production_node_modules
|
||||||
COPY --chown=app:app --from=production-node-modules ${DOCKER_WORKDIR}/node_modules ./node_modules
|
COPY --chown=app:app --from=production-node-modules ${DOCKER_WORKDIR}/node_modules ./node_modules
|
||||||
|
|
||||||
|
COPY --chown=app:app --from=build ${DOCKER_WORKDIR}/core/build/templates ./templates
|
||||||
|
|
||||||
# Run command
|
# Run command
|
||||||
CMD ["node", "index.js"]
|
CMD ["node", "index.js"]
|
||||||
@ -8,7 +8,7 @@
|
|||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"private": false,
|
"private": false,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "ts-node ./esbuild.config.ts && mkdirp build/templates/ && ncp ../core/src/emails/templates build/templates",
|
"build": "ts-node ./esbuild.config.ts && mkdirp build/templates/ && ncp ../core/build/templates build/templates",
|
||||||
"start": "cross-env TZ=UTC NODE_ENV=production node build/index.js",
|
"start": "cross-env TZ=UTC NODE_ENV=production node build/index.js",
|
||||||
"start:bun": "cross-env TZ=UTC NODE_ENV=production bun build/index.js",
|
"start:bun": "cross-env TZ=UTC NODE_ENV=production bun build/index.js",
|
||||||
"dev": "cross-env TZ=UTC nodemon -w src --ext ts,json,css -r tsconfig-paths/register src/index.ts",
|
"dev": "cross-env TZ=UTC nodemon -w src --ext ts,json,css -r tsconfig-paths/register src/index.ts",
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user