complete UpdateForm component and all of its sub items with their own tests and add gitlab-ci and new eslint file

This commit is contained in:
2023-10-18 11:15:00 +03:30
parent 4f752c9a46
commit 8c2ad759b0
24 changed files with 1266 additions and 27 deletions

118
.gitlab-ci.yml Normal file
View File

@@ -0,0 +1,118 @@
image: node:latest
stages:
- build
- test
- test:build
- deploy
merge:build:
stage: build
script:
- npm install
- cp example.env.local .env.local
- cp example.env.local .env.test
only:
- merge_requests
artifacts:
paths:
- node_modules
- .env.local
- .env.test
merge:test:jest:
stage: test
script:
- npm run test
only:
- merge_requests
artifacts:
paths:
- node_modules
- .env.local
- .env.test
merge:test:lint:
stage: test
script:
- npm run lint
only:
- merge_requests
artifacts:
paths:
- node_modules
- .env.local
- .env.test
merge:test:build:
stage: test:build
script:
- npm run build
only:
- merge_requests
artifacts:
paths:
- node_modules
- .env.local
- .env.test
build:
stage: build
script:
- npm install
- cp example.env.local .env.local
- cp example.env.local .env.test
only:
- develop
- main
artifacts:
paths:
- node_modules
- .env.local
- .env.test
test:jest:
stage: test
script:
- npm run test
only:
- develop
- main
artifacts:
paths:
- node_modules
- .env.local
- .env.test
test:lint:
stage: test
script:
- npm run lint
only:
- develop
- main
artifacts:
paths:
- node_modules
- .env.local
- .env.test
test:build:
stage: test:build
script:
- npm run build
only:
- develop
- main
artifacts:
paths:
- node_modules
- .env.local
- .env.test
deploy:
stage: deploy
script:
- echo "Run deploy project"
only:
- main