From 1429378156f75b780e6d526937ddb1b725a82ba7 Mon Sep 17 00:00:00 2001 From: Seth Falco Date: Mon, 20 Mar 2023 09:45:25 +0000 Subject: [PATCH] ci: add test and lint jobs to ci --- .editorconfig | 3 +++ .gitlab-ci.yml | 21 ++++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) 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