Skip to content
Snippets Groups Projects
Commit 08f2cb16 authored by Andreas Kluge Svendsrud's avatar Andreas Kluge Svendsrud
Browse files

Merge branch 'feat/workflow-check-vitests' into 'main'

Updated jobs to also check vitest unit tests and run npm lint to check lint

See merge request !46
parents ab59731c c8984b00
No related branches found
No related tags found
1 merge request!46Updated jobs to also check vitest unit tests and run npm lint to check lint
Pipeline #279912 failed
......@@ -9,6 +9,7 @@ cache:
stages:
- install
- build
- test
install_dependencies:
stage: install
......@@ -32,3 +33,34 @@ build_project:
paths:
- node_modules/
policy: pull
vitest_unit-tests:
stage: test
script:
- npm ci
- npm run test:unit
dependencies:
- install_dependencies
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: pull
eslint_run-lint:
stage: test
script:
- npm ci
- npm run lint
dependencies:
- install_dependencies
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: pull
allow_failure: true
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment