From ed804949e979a667bc271332dcae1ae9fe0939a6 Mon Sep 17 00:00:00 2001 From: HampusM Date: Sun, 25 Jul 2021 21:39:54 +0200 Subject: Organized the Gitlab CI config & added a eslint job --- .gitlab-ci.yml | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) (limited to '.gitlab-ci.yml') diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 996e6b1..7b94e1b 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,11 +4,28 @@ cache: paths: - node_modules/ -test: - stage: test - before_script: +stages: + - prepare + - test + +apt: + stage: prepare + script: - apt-get update -y -qq - DEBIAN_FRONTEND=noninteractive apt-get install -y -qq git libpcre3 libpcre2-posix0 libkrb5-3 libk5crypto3 libcom-err2 libssl1.1 libssl-dev + +yarn-install: + stage: prepare script: - yarn install - - yarn test --ci=true \ No newline at end of file + +test: + stage: test + script: + - yarn test --ci=true + +eslint: + stage: test + script: + - yarn eslint packages/server + - yarn workspace client lint \ No newline at end of file -- cgit v1.2.3-18-g5258