This commit is contained in:
20
.drone.yml
20
.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
|
||||
|
||||
Reference in New Issue
Block a user