Skip to content
Snippets Groups Projects
.gitlab-ci.yml 631 B
image: node:latest

stages:
  - build
  - test

cache:
  paths:
    - node_modules/

build_react_app:
  stage: build
  services:
    - selenium/standalone-chrome
  script: 
    - echo "Starte den Build"
    - npm install
    - echo "Install erfolgreich"
    - npm run build
    - echo "Build erfolgreich"
    - npm run confidence-check --host=selenium__standalone-chrome
  artifacts:
    expire_in: 1 hour
    paths:
      - build
      - node_modules/

test-react-app:
  stage: test
  needs: [build_react_app]
  services:
    - selenium/standalone-chrome
  script:
    - npm start
    - npm test --host=selenium__standalone-chrome