Skip to content
Snippets Groups Projects
.gitlab-ci.yml 428 B
Newer Older
  • Learn to ignore specific revisions
  • default:
      image: node:10
    
    before_script:
      - npm ci
    
    stages:
    
      - source_check
    
      - build
    
      - test
    
    check_format:
      stage: source_check
      script:
    
    Nayeem Rahman's avatar
    Nayeem Rahman committed
        - npx prettier --ignore-path .gitignore --check "**/*.{html,js,json,md}"
    
    lint:
      stage: source_check
      script:
        - npx eslint --ignore-path .gitignore "**/*.js"
    
    backend_build:
      stage: build
      script:
    
    Nayeem Rahman's avatar
    Nayeem Rahman committed
        - npm run build
    
    
    backend_test:
      stage: test
      script:
        - npm test