From 5673068e1a8626caa8e219aeb2c7dbde99ab693b Mon Sep 17 00:00:00 2001 From: Humenius Date: Mon, 1 Feb 2021 12:18:47 +0100 Subject: [PATCH] Change directory in each step --- .drone.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.drone.yml b/.drone.yml index ba3b7e2..114a36a 100644 --- a/.drone.yml +++ b/.drone.yml @@ -2,9 +2,6 @@ kind: pipeline type: docker name: frontend -workspace: - path: /drone/src/frontend - steps: - name: Restore cache image: plugins/s3-cache @@ -20,11 +17,13 @@ steps: - name: Install packages image: node commands: + - cd frontend - yarn - name: Run unit tests image: node commands: + - cd frontend - yarn test - name: Build and push frontend image @@ -79,9 +78,6 @@ kind: pipeline type: docker name: frontend-dev -workspace: - path: /drone/src/frontend - steps: - name: Restore cache image: plugins/s3-cache @@ -97,12 +93,14 @@ steps: - name: Install packages image: node commands: + - cd frontend - ls -la - yarn - name: Run unit tests image: node commands: + - cd frontend - yarn test - name: Build and push frontend dev image @@ -156,9 +154,6 @@ kind: pipeline type: docker name: backend -workspace: - path: /drone/src/backend - steps: - name: Restore cache image: plugins/s3-cache @@ -174,11 +169,13 @@ steps: - name: Run unit tests image: node commands: + - cd backend - ls -la - npm run test:cov - name: Run E2E tests image: node + - cd backend - npm run test:e2e - name: Build and push backend image @@ -233,9 +230,6 @@ kind: pipeline type: docker name: backend-dev -workspace: - path: /drone/src/backend - steps: - name: Restore cache image: plugins/s3-cache @@ -251,10 +245,12 @@ steps: - name: Run unit tests image: node commands: + - cd backend - npm run test:cov - name: Run E2E tests image: node + - cd backend - npm run test:e2e - name: Build and push backend dev image