From f3f0eab4881394081ee75a28afc3fb6d0ee722f3 Mon Sep 17 00:00:00 2001 From: Andreas Kluge Svendsrud <andreas.k.svendsrud@ntnu.no> Date: Thu, 2 May 2024 15:41:04 +0200 Subject: [PATCH] Update .gitlab-ci.yml --- .gitlab-ci.yml | 29 ++++++++++++++++------------- 1 file changed, 16 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 9545d59..15f8cb8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,44 +24,47 @@ install_dependencies: build_project: stage: build - script: - - npm ci - - npm run build - dependencies: - - install_dependencies cache: key: "${CI_COMMIT_REF_SLUG}" paths: - node_modules/ policy: pull - -vitest_unit-tests: - stage: test script: - npm ci - - npm run test:unit + - npm run build dependencies: - install_dependencies + +vitest_unit-tests: + stage: test cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ policy: pull - -eslint_run-lint: - stage: lint script: - npm ci - - npm run lint + - npm run test:unit dependencies: - install_dependencies + +eslint_run-lint: + stage: lint cache: key: ${CI_COMMIT_REF_SLUG} paths: - node_modules/ policy: pull + script: + - npm ci + - npm run lint + dependencies: + - install_dependencies allow_failure: true + + + -- GitLab