diff --git a/.editorconfig b/.editorconfig index 0d028a6..102bd7a 100644 --- a/.editorconfig +++ b/.editorconfig @@ -10,3 +10,6 @@ insert_final_newline = true charset = utf-8 indent_style = space indent_size = 4 + +[*.{yml,yaml}] +indent_size = 2 diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bcc31e1..2f8819e 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,5 +1,20 @@ -test: - stage: test - script: npm ci --ignore-scripts --force && npm run test +before_script: + - npm ci --ignore-scripts --force + +build: + stage: build + script: npm run build + only: + - merge_requests + +lint: + stage: test + script: npm run lint + only: + - merge_requests + +test: + stage: test + script: npm run test only: - merge_requests