From 84d135d5e31f8842e9841e4973b97602bda73dee Mon Sep 17 00:00:00 2001 From: Jef Roosens Date: Tue, 18 May 2021 15:33:49 +0200 Subject: [PATCH] Added frontend linting to cicd --- .woodpecker.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.woodpecker.yml b/.woodpecker.yml index 8fd1ddc..8544ea6 100644 --- a/.woodpecker.yml +++ b/.woodpecker.yml @@ -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