fix frontend workflow test build and lint

This commit is contained in:
einhornimmond 2025-01-18 18:39:21 +01:00
parent 5061c83f0c
commit c8dffddb43
4 changed files with 4 additions and 4 deletions

View File

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

View File

@ -169,7 +169,7 @@ module.exports = {
.required(),
NODE_ENV: Joi.string()
.valid('production', 'development')
.valid('production', 'development', 'test')
.default('development')
.description('Specifies the environment in which the application is running.'),

View File

@ -88,7 +88,7 @@
"eslint-plugin-vitest": "^0.5.4",
"eslint-plugin-vue": "8.7.1",
"joi": "^17.13.3",
"jsdom": "^25.0.0",
"jsdom": "^25.0.0",
"mock-apollo-client": "^1.2.1",
"postcss": "^8.4.8",
"postcss-html": "^1.3.0",

View File

@ -89,7 +89,7 @@ module.exports = Joi.object({
Joi.string()
.ip({ version: ['ipv4'] })
.messages({ 'string.ip': 'Must be a valid IPv4 address' }),
Joi.string().domain().messages({ 'string.domain': 'Must be a valid domain' })
Joi.string().domain().messages({ 'string.domain': 'Must be a valid domain' }),
)
.when('FRONTEND_HOSTING', {
is: 'nodejs',