Skip to content
Commits on Source (8)
......@@ -9,6 +9,7 @@ stages:
- release
- deploy
yarn_validate:
stage: yarn
script:
......@@ -35,12 +36,13 @@ lint:
reports:
codequality: codequality.json
test:
test:frontend:
before_script:
- yarn install
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
script:
- yarn run test
- cd packages/client
- yarn run test:ci
needs: []
stage: test
rules:
......@@ -54,20 +56,84 @@ test:
when: always
artifacts:
paths:
- coverage
- packages/client/coverage
when: always
reports:
junit: packages/client/junit.xml
coverage_report:
coverage_format: cobertura
path: packages/client/coverage/cobertura-coverage.xml
test:library:
before_script:
- yarn install
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
script:
- cd packages/library
- yarn run test:ci
needs: []
stage: test
rules:
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
artifacts:
paths:
- packages/library/coverage
when: always
reports:
junit: junit.xml
junit: packages/library/junit.xml
coverage_report:
coverage_format: cobertura
path: coverage/cobertura-coverage.xml
path: packages/library/coverage/cobertura-coverage.xml
test:server:
before_script:
- cd packages/server
- yarn install
coverage: /All files[^|]*\|[^|]*\s+([\d\.]+)/
services:
- name: registry.pentacore.se/toolbox/mongodb-service-image:main
alias: mongodb
variables:
MONGO_INITDB_ROOT_USERNAME: root
MONGO_INITDB_ROOT_PASSWORD: example
MONGO_INITDB_DATABASE: rpg
script:
- yarn run test:ci
variables:
DB_HOST: mongodb
DB_USER: root
DB_PASSWORD : example
needs: []
stage: test
rules:
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: never
- if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
- if: $CI_PIPELINE_SOURCE == "merge_request_event"
artifacts:
paths:
- packages/server/coverage
when: always
reports:
junit: packages/server/junit.xml
coverage_report:
coverage_format: cobertura
path: packages/server/coverage/cobertura-coverage.xml
build:
before_script:
- yarn install
script:
- yarn run build
- cd packages/client && yarn run generate
- cd packages/library
- yarn build
- cd ../server
- yarn build
- cd ../client
- yarn build
- yarn generate
needs: []
rules:
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
......@@ -86,7 +152,7 @@ build:
build:nodeLts:
image: node:lts-alpine
before_script:
- yarn install
- yarn
script:
- yarn run build
- cd packages/client && yarn run generate
......@@ -229,6 +295,12 @@ deploy:staging:
release:
image: registry.pentacore.se/toolbox/semantic-release-image:main
stage: release
needs:
- test:server
- test:frontend
- test:library
- lint
- build
rules:
- if: $CI_COMMIT_TAG =~ /^[vV](\d+)\.(\d+)\.(\d+)-?([a-zA-Z-\d\.]*)\+?([a-zA-Z-\d\.]*)$/
when: never
......
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
File suppressed by a .gitattributes entry or the file's encoding is unsupported.