From d07e7b834831230b53860d0919a68edc2d36193d Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sat, 8 Jan 2022 21:36:43 +0100 Subject: build: Eslint fixes for multi-module project MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- .gitlab-ci.yml | 35 +++++++++++++++++++---------------- 1 file changed, 19 insertions(+), 16 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bf9461e..c522036 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,35 +2,38 @@ image: node:16.13.1 cache: paths: - - node_modules/ - - .yarn/cache + - .yarn/cache/ stages: + - code-quality - test - - lint - build -Run tests: - stage: test +default: before_script: - - yarn install + - yarn install --immutable + +lint: + stage: code-quality script: - - yarn test + - yarn lint --format gitlab + artifacts: + reports: + codequality: gl-codequality.json -Run linter and static analyzer: - stage: lint - before_script: - - yarn install +typecheck: + stage: code-quality script: - - yarn dlx @yarnpkg/doctor - yarn typecheck - - yarn run lint + +test: + stage: test + script: + - yarn test # TODO: GitlabCI free runners are only for linux - need to investigate for macos and windows artifacts -Build the app: +build: stage: build - before_script: - - yarn install script: - yarn compile # TODO: Need to publish the built distributable file -- cgit v1.2.3-54-g00ecf