Skip to content
Snippets Groups Projects
Commit fda43e34 authored by Arkerthan's avatar Arkerthan
Browse files

Add gitlab CI with eslint check

parent d07364f0
No related branches found
No related tags found
1 merge request!8469Use GitLab CI Pipeline to monitor code quality
stages:
- lint
eslint:
stage: lint
#image: node:current-alpine3.12
image: node:12-alpine3.12
tags: [ docker ]
script:
- npm install
#- npm ci ### should use this for automated testing instead of "npm install", but we need a package-lock.json for it.
- npm install eslint-formatter-gitlab
- npx eslint --format gitlab .
# errors make eslint return 1, for now though we want the pipeline not to ail when we eslint errors.
# trying to add " ; exit 0" or " ; echo 0" let the build fail anyways for some reason.
allow_failure: true
artifacts:
reports:
codequality: gl-codequality.json
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment