From 73882aa9c5b2627626c00a2750f94d265b3cb598 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20G=C3=B6bel?= <dgoebel@techfak.uni-bielefeld.de> Date: Tue, 19 Jul 2022 12:27:19 +0200 Subject: [PATCH] Add gitlab ci pipeline for lint check and building --- .gitlab-ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..43273ca --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,31 @@ +image: node:16 +cache: + paths: + - dist + - node_modules +stages: + - prepare + - test + - build + +prepare: + stage: prepare + script: + - npm install + +lint: + stage: test + needs: + - prepare + script: + - npm run lint + +build: + stage: build + needs: + - prepare + script: + - npm run build-only + artifacts: + paths: + - dist -- GitLab