Newer
Older
image: node:alpine # Much smaller than other variants, faster and more resource effective
key: "${CI_COMMIT_REF_SLUG}" # Branch-specific cache keys to have separate caches across branches.
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: push
cache:
key: "${CI_COMMIT_REF_SLUG}"
paths:
- node_modules/
policy: pull
vitest_unit-tests:
stage: test
script:
- npm run test:unit
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/
policy: pull
- npm run lint
dependencies:
- install_dependencies
cache:
key: ${CI_COMMIT_REF_SLUG}
paths:
- node_modules/