mirror of
https://github.com/IT4Change/gradido.git
synced 2026-02-06 09:56:05 +00:00
fix frontend workflow test build and lint
This commit is contained in:
parent
5061c83f0c
commit
c8dffddb43
2
.github/workflows/test_frontend.yml
vendored
2
.github/workflows/test_frontend.yml
vendored
@ -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'
|
||||
|
||||
@ -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.'),
|
||||
|
||||
|
||||
@ -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",
|
||||
|
||||
@ -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',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user