From cf270419d680f9b6999e4f918c7966fd314272e5 Mon Sep 17 00:00:00 2001 From: Bill Date: Tue, 15 Mar 2022 19:16:28 -0400 Subject: [PATCH] Add CI --- .gitlab-ci.yml | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..935a1d26 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,39 @@ +image: node:16.13 + +stages: + - install-dependencies + - test + - build + +Install Dependencies: + stage: install-dependencies + script: + - yarn install + cache: + key: ${CI_COMMIT_BRANCH} + paths: + - node_modules + +ESLinter: + stage: test + script: + - node ./node_modules/eslint/bin/eslint.js src/ + cache: + key: ${CI_COMMIT_BRANCH} + paths: + - node_modules + +Build Nitro: + stage: build + script: + - cp public/renderer-config.json.example public/renderer-config.json + - cp public/ui-config.json.example public/ui-config.json + - yarn build:prod + cache: + key: ${CI_COMMIT_BRANCH} + paths: + - node_modules + artifacts: + expire_in: 2 weeks + paths: + - build/*