Merge branch 'lintPretty' into 'main'
Lint pretty See merge request v3/service/logger!10
This commit is contained in:
commit
17f40e73fb
|
@ -1,8 +1,25 @@
|
||||||
image: docker:20.10.22
|
image: node:18-alpine3.16
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- test
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
##############
|
||||||
|
# TEST STAGE #
|
||||||
|
##############
|
||||||
|
|
||||||
|
test:
|
||||||
|
stage: test
|
||||||
|
variables:
|
||||||
|
DOCKER_TLS_CERTDIR: ''
|
||||||
|
script:
|
||||||
|
- npm install
|
||||||
|
- npm run lint:check
|
||||||
|
- npm run pretty:check
|
||||||
|
rules:
|
||||||
|
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == $CI_DEFAULT_BRANCH || $CI_COMMIT_MESSAGE =~ /--check/ || $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH'
|
||||||
|
when: always
|
||||||
|
|
||||||
###############
|
###############
|
||||||
# BUILD STAGE #
|
# BUILD STAGE #
|
||||||
###############
|
###############
|
||||||
|
@ -11,7 +28,7 @@ build:
|
||||||
stage: build
|
stage: build
|
||||||
image: docker:20.10.22
|
image: docker:20.10.22
|
||||||
variables:
|
variables:
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ''
|
||||||
services:
|
services:
|
||||||
- docker:dind
|
- docker:dind
|
||||||
before_script:
|
before_script:
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
node_modules
|
||||||
|
*.log*
|
||||||
|
logs
|
||||||
|
.env
|
||||||
|
dist
|
||||||
|
coverage
|
||||||
|
.prettierrc.json
|
|
@ -14,6 +14,9 @@
|
||||||
"start:debug": "nest start --debug --watch",
|
"start:debug": "nest start --debug --watch",
|
||||||
"start:prod": "node dist/main",
|
"start:prod": "node dist/main",
|
||||||
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
"lint": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix",
|
||||||
|
"lint:check": "eslint \"{src,apps,libs,test}/**/*.ts\" --fix-dry-run --ignore-path .gitignore",
|
||||||
|
"pretty:check": "./node_modules/.bin/prettier --check .",
|
||||||
|
"pretty": "./node_modules/.bin/prettier --write .",
|
||||||
"test": "jest",
|
"test": "jest",
|
||||||
"test:watch": "jest --watch",
|
"test:watch": "jest --watch",
|
||||||
"test:cov": "jest --coverage",
|
"test:cov": "jest --coverage",
|
||||||
|
|
Loading…
Reference in New Issue