mirror of
https://github.com/billsonnn/nitro-react.git
synced 2024-11-26 15:40:51 +01:00
Add CI
This commit is contained in:
parent
499dbf726d
commit
cf270419d6
39
.gitlab-ci.yml
Normal file
39
.gitlab-ci.yml
Normal 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/*
|
Loading…
Reference in New Issue
Block a user