Database Connection Update #4
20
.drone.yml
20
.drone.yml
@@ -2,9 +2,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: frontend
|
name: frontend
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/src/frontend
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
@@ -20,11 +17,13 @@ steps:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd frontend
|
||||||
- yarn
|
- yarn
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd frontend
|
||||||
- yarn test
|
- yarn test
|
||||||
|
|
||||||
- name: Build and push frontend image
|
- name: Build and push frontend image
|
||||||
@@ -79,9 +78,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: frontend-dev
|
name: frontend-dev
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/src/frontend
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
@@ -97,12 +93,14 @@ steps:
|
|||||||
- name: Install packages
|
- name: Install packages
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd frontend
|
||||||
- ls -la
|
- ls -la
|
||||||
- yarn
|
- yarn
|
||||||
|
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd frontend
|
||||||
- yarn test
|
- yarn test
|
||||||
|
|
||||||
- name: Build and push frontend dev image
|
- name: Build and push frontend dev image
|
||||||
@@ -156,9 +154,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: backend
|
name: backend
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/src/backend
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
@@ -174,11 +169,13 @@ steps:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd backend
|
||||||
- ls -la
|
- ls -la
|
||||||
- npm run test:cov
|
- npm run test:cov
|
||||||
|
|
||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
image: node
|
image: node
|
||||||
|
- cd backend
|
||||||
- npm run test:e2e
|
- npm run test:e2e
|
||||||
|
|
||||||
- name: Build and push backend image
|
- name: Build and push backend image
|
||||||
@@ -233,9 +230,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: backend-dev
|
name: backend-dev
|
||||||
|
|
||||||
workspace:
|
|
||||||
path: /drone/src/backend
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Restore cache
|
- name: Restore cache
|
||||||
image: plugins/s3-cache
|
image: plugins/s3-cache
|
||||||
@@ -251,10 +245,12 @@ steps:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
image: node
|
image: node
|
||||||
commands:
|
commands:
|
||||||
|
- cd backend
|
||||||
- npm run test:cov
|
- npm run test:cov
|
||||||
|
|
||||||
- name: Run E2E tests
|
- name: Run E2E tests
|
||||||
image: node
|
image: node
|
||||||
|
- cd backend
|
||||||
- npm run test:e2e
|
- npm run test:e2e
|
||||||
|
|
||||||
- name: Build and push backend dev image
|
- name: Build and push backend dev image
|
||||||
|
|||||||
Reference in New Issue
Block a user