Tarskan 5 years ago
parent
commit
4764f9a40e
  1. 21
      .circleci/config.yml
  2. 2
      src/config/config.service.ts

21
.circleci/config.yml

@ -54,7 +54,8 @@ jobs:
- restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test
#ne fonctionne mais vu en cour c'est ce que l'on attandais
DATABASETest :
docker:
- image: cimg/node:14.15.0 # the primary container, where your job's commands are run
@ -76,4 +77,20 @@ jobs:
- checkout
- restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn test:e2e
- run: yarn test:e2e
DOCJob:
docker:
- image: cimg/node:14.15.0 # the primary container, where your job's commands are run
auth:
username: $AUTH_DOCKER
password: $PSW_DOCKER # context / project UI env-var reference
steps:
- checkout
- restore_cache:
key: npm-v1-dependencies-{{ checksum "yarn.lock" }}
- run: yarn doc:build
- store_artifacts:
path:
- .yarn/docs
destination: yarn-docs

2
src/config/config.service.ts

@ -37,8 +37,6 @@ export class ConfigService {
private validateInput(envConfig: any): EnvConfig {
const result = schema.safeParse(envConfig);
console.log(result);
if (result.success === false) {
throw new Error(`Config validation error: ${result.error.toString()}`);
}

Loading…
Cancel
Save