From b40420174a6db4ec47dcceefb0df61c51b557b54 Mon Sep 17 00:00:00 2001 From: Bowen Wang Date: Wed, 12 Jun 2019 18:37:35 -0700 Subject: [PATCH] set up CI --- .gitlab-ci.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..9884785 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,21 @@ +image: node:latest + +stages: + - build + - test + +cache: + paths: + - node_modules/ + +install_dependencies: + stage: build + script: + - npm install + artifacts: + paths: + - node_modules/ + +run_tests: + stage: test + script: npm run test:ci