diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 000000000..3872518d4 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,37 @@ +image: node:20-bullseye + +stages: + - lint + - test + - build + +cache: + key: ${CI_COMMIT_REF_SLUG} + paths: + - .npm/ + +variables: + NPM_CONFIG_CACHE: $CI_PROJECT_DIR/.npm + +before_script: + - npm ci + +lint: + stage: lint + script: + - npm run lint + +typecheck: + stage: test + script: + - npm run typecheck + +unit_tests: + stage: test + script: + - npm test + +build: + stage: build + script: + - npm run build