Improve CI speed and SOC
This commit is contained in:
parent
1238a73fbd
commit
4389868e8c
12
.drone.yml
12
.drone.yml
|
@ -3,18 +3,24 @@ type: docker
|
||||||
name: build
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: lint
|
- name: install
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm install
|
- npm install
|
||||||
|
|
||||||
|
- name: lint
|
||||||
|
image: node:lts-alpine
|
||||||
|
commands:
|
||||||
- npm run lint
|
- npm run lint
|
||||||
|
depends_on:
|
||||||
|
- install
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
commands:
|
commands:
|
||||||
- npm run test
|
- npm run test
|
||||||
depends_on:
|
depends_on:
|
||||||
- lint
|
- install
|
||||||
|
|
||||||
- name: build
|
- name: build
|
||||||
image: node:lts-alpine
|
image: node:lts-alpine
|
||||||
|
@ -23,7 +29,7 @@ steps:
|
||||||
- npm run build
|
- npm run build
|
||||||
- zip -r romulus-m.zip dist/
|
- zip -r romulus-m.zip dist/
|
||||||
depends_on:
|
depends_on:
|
||||||
- test
|
- install
|
||||||
|
|
||||||
- name: publish
|
- name: publish
|
||||||
image: plugins/gitea-release
|
image: plugins/gitea-release
|
||||||
|
|
Loading…
Reference in New Issue