workflow fix attempt

This commit is contained in:
einhornimmond 2025-01-21 13:01:06 +01:00
parent cd739f56f5
commit e0e81bfa66
5 changed files with 1178 additions and 21 deletions

View File

@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v3
- name: Admin Interface | Build 'test' image
run: docker compose -f docker-compose.yml -f docker-compose.test.yml up --no-deps admin
run: docker build -f ./admin/Dockerfile --target test -t "gradido/admin:test" --build-arg NODE_ENV="test" .
unit_test:
if: needs.files-changed.outputs.admin == 'true'

View File

@ -33,7 +33,7 @@ jobs:
uses: actions/checkout@v3
- name: Frontend | Build 'test' image
run: docker compose -f docker-compose.yml -f docker-compose.test.yml up --no-deps frontend
run: docker build -f ./frontend/Dockerfile --target test -t "gradido/frontend:test" --build-arg NODE_ENV="test" .
unit_test:
if: needs.files-changed.outputs.frontend == 'true'

View File

@ -7,7 +7,7 @@ module.exports = {
collectCoverageFrom: ['src/**/*.ts', '!**/node_modules/**', '!src/seeds/**', '!build/**'],
coverageThreshold: {
global: {
lines: 81,
lines: 80,
},
},
setupFiles: ['<rootDir>/test/testSetup.ts'],

View File

@ -11,6 +11,7 @@
"build": "tsc --build && mkdirp build/src/emails/templates/ && ncp src/emails/templates build/src/emails/templates && mkdirp build/src/locales/ && ncp src/locales build/src/locales",
"clean": "tsc --build --clean",
"start": "cross-env TZ=UTC TS_NODE_BASEURL=./build node -r tsconfig-paths/register build/src/index.js",
"nexe": "nexe --build build/src/index.js",
"dev": "cross-env TZ=UTC nodemon -w src --ext ts,pug,json,css --exec ts-node -r tsconfig-paths/register src/index.ts",
"lint": "eslint --max-warnings=0 .",
"test": "cross-env TZ=UTC NODE_ENV=development jest --runInBand --forceExit --detectOpenHandles",
@ -89,6 +90,7 @@
"klicktipp-api": "^1.0.2",
"mkdirp": "^3.0.1",
"ncp": "^2.0.0",
"nexe": "^4.0.0-rc.6",
"nodemon": "^2.0.7",
"prettier": "^2.8.7",
"ts-jest": "^27.0.5",

File diff suppressed because it is too large Load Diff