This commit is contained in:
Bill 2022-03-15 19:16:28 -04:00
parent 499dbf726d
commit cf270419d6

39
.gitlab-ci.yml Normal file
View File

@ -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/*