Skip to content

Commit 2f621a2

Browse files
author
Sergio García Prado
authored
Merge pull request #118 from minos-framework/0.5.0
0.5.0
2 parents cf5b008 + f2dd319 commit 2f621a2

File tree

211 files changed

+8224
-2304
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+8224
-2304
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
uses: actions/checkout@v2
1616

1717
- name: Install Poetry
18-
uses: snok/install-poetry@v1.1.4
18+
uses: snok/install-poetry@v1
1919

2020
- name: Install dependencies
2121
run: make install
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-broker-kafka"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-broker-kafka/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
container: python:3.9-buster
14+
defaults:
15+
run:
16+
working-directory: packages/plugins/minos-broker-kafka
17+
18+
steps:
19+
20+
- name: Check out repository code
21+
uses: actions/checkout@v2
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Publish package
30+
run: make release
31+
env:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
name: "Test: minos-broker-kafka"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-broker-kafka/**'
11+
- 'packages/core/minos-microservice-networks/**'
12+
- 'packages/core/minos-microservice-common/**'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
container: python:3.9-buster
18+
defaults:
19+
run:
20+
working-directory: packages/plugins/minos-broker-kafka
21+
22+
services:
23+
postgres:
24+
image: postgres
25+
env:
26+
POSTGRES_USER: minos
27+
POSTGRES_PASSWORD: min0s
28+
POSTGRES_DB: order_db
29+
ports:
30+
- 5432:5432
31+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
32+
33+
zookeeper:
34+
image: wurstmeister/zookeeper:latest
35+
ports:
36+
- 2181:2181
37+
38+
kafka:
39+
image: wurstmeister/kafka:latest
40+
ports:
41+
- 9092:9092
42+
env:
43+
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
44+
KAFKA_ADVERTISED_HOST_NAME: kafka
45+
KAFKA_DELETE_TOPIC_ENABLE: "true"
46+
env:
47+
MINOS_BROKER_QUEUE_HOST: postgres
48+
MINOS_BROKER_HOST: kafka
49+
MINOS_REPOSITORY_HOST: postgres
50+
MINOS_SNAPSHOT_HOST: postgres
51+
52+
steps:
53+
- name: Check out repository code
54+
uses: actions/checkout@v2
55+
56+
- name: Install Poetry
57+
uses: snok/install-poetry@v1
58+
59+
- name: Install dependencies
60+
run: make install
61+
62+
- name: Lint package
63+
run: make lint
64+
65+
- name: Test package with coverage
66+
run: make coverage
67+
68+
- name: Publish coverage
69+
uses: codecov/codecov-action@v2
70+
with:
71+
token: ${{ secrets.CODECOV_TOKEN }}
72+
files: ./packages/plugins/minos-broker-kafka/coverage.xml
73+
fail_ci_if_error: true
74+
75+
- name: Generate documentation
76+
run: make docs
77+
78+
- name: Generate build
79+
run: make dist
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-discovery-minos"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-discovery-minos/**'
9+
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
container: python:3.9-buster
14+
defaults:
15+
run:
16+
working-directory: packages/plugins/minos-discovery-minos
17+
18+
steps:
19+
20+
- name: Check out repository code
21+
uses: actions/checkout@v2
22+
23+
- name: Install Poetry
24+
uses: snok/install-poetry@v1
25+
26+
- name: Install dependencies
27+
run: make install
28+
29+
- name: Publish package
30+
run: make release
31+
env:
32+
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
33+
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: "Test: minos-discovery-minos"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-discovery-minos/**'
11+
- 'packages/core/minos-microservice-networks/**'
12+
- 'packages/core/minos-microservice-common/**'
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
container: python:3.9-buster
18+
defaults:
19+
run:
20+
working-directory: packages/plugins/minos-discovery-minos
21+
22+
steps:
23+
- name: Check out repository code
24+
uses: actions/checkout@v2
25+
26+
- name: Install Poetry
27+
uses: snok/install-poetry@v1
28+
29+
- name: Install dependencies
30+
run: make install
31+
32+
- name: Lint package
33+
run: make lint
34+
35+
- name: Test package with coverage
36+
run: make coverage
37+
38+
- name: Publish coverage
39+
uses: codecov/codecov-action@v2
40+
with:
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
files: ./packages/plugins/minos-discovery-minos/coverage.xml
43+
fail_ci_if_error: true
44+
45+
- name: Generate documentation
46+
run: make docs
47+
48+
- name: Generate build
49+
run: make dist

.github/workflows/minos-microservice-aggregate-tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- '*.*.x'
78
pull_request:
89
paths:
910
- 'packages/core/minos-microservice-aggregate/**'

.github/workflows/minos-microservice-common-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v2
2222

2323
- name: Install Poetry
24-
uses: snok/install-poetry@v1.1.4
24+
uses: snok/install-poetry@v1
2525

2626
- name: Install dependencies
2727
run: make install

.github/workflows/minos-microservice-common-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- '*.*.x'
78
pull_request:
89
paths:
910
- 'packages/core/minos-microservice-common/**'
@@ -37,7 +38,7 @@ jobs:
3738
uses: actions/checkout@v2
3839

3940
- name: Install Poetry
40-
uses: snok/install-poetry@v1.1.4
41+
uses: snok/install-poetry@v1
4142

4243
- name: Install dependencies
4344
run: make install

.github/workflows/minos-microservice-cqrs-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
uses: actions/checkout@v2
2222

2323
- name: Install Poetry
24-
uses: snok/install-poetry@v1.1.4
24+
uses: snok/install-poetry@v1
2525

2626
- name: Install dependencies
2727
run: make install

.github/workflows/minos-microservice-cqrs-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches:
66
- main
7+
- '*.*.x'
78
pull_request:
89
paths:
910
- 'packages/core/minos-microservice-cqrs/**'
@@ -40,7 +41,7 @@ jobs:
4041
uses: actions/checkout@v2
4142

4243
- name: Install Poetry
43-
uses: snok/install-poetry@v1.1.4
44+
uses: snok/install-poetry@v1
4445

4546
- name: Install dependencies
4647
run: make install

0 commit comments

Comments
 (0)