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

Merge branch 'feat/workflow-ci-check-lint' into 'main'

Updated workflow to be run in a docker image and added job for checking lint

See merge request !13
parents f1e5cd6c 29d7bdac
No related branches found
No related tags found
1 merge request!13Updated workflow to be run in a docker image and added job for checking lint
Pipeline #274193 failed
image: node:alpine # Much smaller than other variants, faster and more resource effective
stages:
- install
- build
- install_dependencies
- lint
- build_project
cache:
key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches.
paths:
- node_modules/
key: "$CI_BUILD_REF_NAME" # Separate cache for each branch
install_dependencies:
stage: install
image: node:latest
stage: install_dependencies
script:
- npm install
lint:
stage: lint
script:
- npm run lint
allow_failure: true
build_project:
stage: build
image: node:latest
stage: build_project
script:
- npm run build
\ No newline at end of file
- npm run build
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