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:
|
pipeline:
|
||||||
test:
|
# =====TESTING=====
|
||||||
|
test-backend:
|
||||||
# Alpine version doesn't have make
|
# Alpine version doesn't have make
|
||||||
image: python:3.8
|
image: python:3.8
|
||||||
pull: true
|
pull: true
|
||||||
|
group: test
|
||||||
commands:
|
commands:
|
||||||
- make test
|
- make test
|
||||||
when:
|
when:
|
||||||
event: push
|
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
|
image: python:3.8
|
||||||
|
group: lint
|
||||||
commands:
|
commands:
|
||||||
- make lint
|
- make lint
|
||||||
when:
|
when:
|
||||||
event: push
|
event: push
|
||||||
|
|
||||||
|
lint-frontend:
|
||||||
|
image: node:16-alpine
|
||||||
|
group: lint
|
||||||
|
commands:
|
||||||
|
- cd web
|
||||||
|
- yarn run lint
|
||||||
|
when:
|
||||||
|
event: push
|
||||||
|
|
||||||
|
|
||||||
|
# =====PUBLISHING=====
|
||||||
publish-dev:
|
publish-dev:
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
repo: chewingbever/jos
|
repo: chewingbever/jos
|
||||||
|
|
Reference in New Issue