From 477641a3d823d2b0e55f456a5c89d44538262364 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Wed, 14 Jan 2026 01:41:59 +0000 Subject: [PATCH] Add GitLab CI workflow --- .gitlab-ci.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .gitlab-ci.yml 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