Added frontend linting to cicd
continuous-integration/drone the build failed Details

pull/20/head
Jef Roosens 2021-05-18 15:33:49 +02:00
parent b649e3a1a9
commit 84d135d5e3
Signed by: Jef Roosens
GPG Key ID: B580B976584B5F30
1 changed files with 29 additions and 2 deletions

View File

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