Added frontend linting to cicd
continuous-integration/drone the build failed
Details
continuous-integration/drone the build failed
Details
parent
b649e3a1a9
commit
84d135d5e3
|
@ -1,20 +1,47 @@
|
|||
pipeline:
|
||||
test:
|
||||
# =====TESTING=====
|
||||
test-backend:
|
||||
# Alpine version doesn't have make
|
||||
image: python:3.8
|
||||
pull: true
|
||||
group: test
|
||||
commands:
|
||||
- make test
|
||||
when:
|
||||
event: push
|
||||
|
||||
lint:
|
||||
test-frontend:
|
||||
# Alpine version doesn't have make
|
||||
image: node:16-alpine
|
||||
pull: true
|
||||
group: test
|
||||
commands:
|
||||
- cd web
|
||||
- yarn build
|
||||
when:
|
||||
event: push
|
||||
|
||||
|
||||
# =====LINTING=====
|
||||
lint-backend:
|
||||
image: python:3.8
|
||||
group: lint
|
||||
commands:
|
||||
- make lint
|
||||
when:
|
||||
event: push
|
||||
|
||||
lint-frontend:
|
||||
image: node:16-alpine
|
||||
group: lint
|
||||
commands:
|
||||
- cd web
|
||||
- yarn run lint
|
||||
when:
|
||||
event: push
|
||||
|
||||
|
||||
# =====PUBLISHING=====
|
||||
publish-dev:
|
||||
image: plugins/docker
|
||||
repo: chewingbever/jos
|
||||
|
|
Reference in New Issue