Skip to content

Commit a81c39a

Browse files
author
Sergio García Prado
authored
Merge pull request #407 from minos-framework/0.7.0.dev2
0.7.0.dev2
2 parents 94dd238 + 485ca21 commit a81c39a

File tree

378 files changed

+13940
-7548
lines changed

Some content is hidden

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

378 files changed

+13940
-7548
lines changed

.github/workflows/minos-broker-kafka-tests.yml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,6 @@ jobs:
2020
working-directory: packages/plugins/minos-broker-kafka
2121

2222
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-
3323
zookeeper:
3424
image: wurstmeister/zookeeper:latest
3525
ports:
@@ -44,10 +34,7 @@ jobs:
4434
KAFKA_ADVERTISED_HOST_NAME: kafka
4535
KAFKA_DELETE_TOPIC_ENABLE: "true"
4636
env:
47-
MINOS_BROKER_QUEUE_HOST: postgres
4837
MINOS_BROKER_HOST: kafka
49-
MINOS_REPOSITORY_HOST: postgres
50-
MINOS_SNAPSHOT_HOST: postgres
5138

5239
steps:
5340
- name: Check out repository code

.github/workflows/minos-broker-rabbitmq-tests.yml

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -18,28 +18,13 @@ jobs:
1818
defaults:
1919
run:
2020
working-directory: packages/plugins/minos-broker-rabbitmq
21-
2221
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-
3322
rabbitmq:
3423
image: rabbitmq:3
3524
ports:
36-
- "5672:5672"
37-
25+
- 5672:5672
3826
env:
39-
MINOS_BROKER_QUEUE_HOST: postgres
4027
MINOS_BROKER_HOST: rabbitmq
41-
MINOS_REPOSITORY_HOST: postgres
42-
MINOS_SNAPSHOT_HOST: postgres
4328

4429
steps:
4530
- name: Check out repository code
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-database-aiopg"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-database-aiopg/**'
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-database-aiopg
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: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: "Test: minos-database-aiopg"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-database-aiopg/**'
11+
- 'packages/core/minos-microservice-aggregate/**'
12+
- 'packages/core/minos-microservice-networks/**'
13+
- 'packages/core/minos-microservice-common/**'
14+
15+
jobs:
16+
build:
17+
runs-on: ubuntu-latest
18+
container: python:3.9-buster
19+
defaults:
20+
run:
21+
working-directory: packages/plugins/minos-database-aiopg
22+
23+
services:
24+
postgres:
25+
image: postgres
26+
env:
27+
POSTGRES_USER: minos
28+
POSTGRES_PASSWORD: min0s
29+
POSTGRES_DB: order_db
30+
ports:
31+
- 5432:5432
32+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
33+
34+
env:
35+
MINOS_DATABASES_DEFAULT_HOST: postgres
36+
37+
steps:
38+
- name: Check out repository code
39+
uses: actions/checkout@v2
40+
41+
- name: Install Poetry
42+
uses: snok/install-poetry@v1
43+
44+
- name: Install dependencies
45+
run: make install
46+
47+
- name: Lint package
48+
run: make lint
49+
50+
- name: Test package with coverage
51+
run: make coverage
52+
53+
- name: Publish coverage
54+
uses: codecov/codecov-action@v2
55+
with:
56+
token: ${{ secrets.CODECOV_TOKEN }}
57+
files: ./packages/plugins/minos-database-aiopg/coverage.xml
58+
fail_ci_if_error: true
59+
60+
- name: Generate documentation
61+
run: make docs
62+
63+
- name: Generate build
64+
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-database-lmdb"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-database-lmdb/**'
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-database-lmdb
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-database-lmdb"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-database-lmdb/**'
11+
- 'packages/core/minos-microservice-saga/**'
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-database-lmdb
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-database-lmdb/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-http-aiohttp-tests.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,23 +19,6 @@ jobs:
1919
run:
2020
working-directory: packages/plugins/minos-http-aiohttp
2121

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-
env:
34-
MINOS_BROKER_QUEUE_HOST: postgres
35-
MINOS_BROKER_HOST: kafka
36-
MINOS_REPOSITORY_HOST: postgres
37-
MINOS_SNAPSHOT_HOST: postgres
38-
3922
steps:
4023
- name: Check out repository code
4124
uses: actions/checkout@v2

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,6 @@ jobs:
1919
run:
2020
working-directory: packages/core/minos-microservice-aggregate
2121

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-
env:
34-
MINOS_BROKER_QUEUE_HOST: postgres
35-
MINOS_REPOSITORY_HOST: postgres
36-
MINOS_SNAPSHOT_HOST: postgres
37-
3822
steps:
3923
- name: Check out repository code
4024
uses: actions/checkout@v2

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,22 +17,6 @@ jobs:
1717
run:
1818
working-directory: packages/core/minos-microservice-common
1919

20-
services:
21-
postgres:
22-
image: postgres
23-
env:
24-
POSTGRES_USER: minos
25-
POSTGRES_PASSWORD: min0s
26-
POSTGRES_DB: order_db
27-
ports:
28-
- 5432:5432
29-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
30-
31-
env:
32-
MINOS_BROKER_QUEUE_HOST: postgres
33-
MINOS_REPOSITORY_HOST: postgres
34-
MINOS_SNAPSHOT_HOST: postgres
35-
3620
steps:
3721
- name: Check out repository code
3822
uses: actions/checkout@v2

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

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,22 +20,6 @@ jobs:
2020
run:
2121
working-directory: packages/core/minos-microservice-cqrs
2222

23-
services:
24-
postgres:
25-
image: postgres
26-
env:
27-
POSTGRES_USER: minos
28-
POSTGRES_PASSWORD: min0s
29-
POSTGRES_DB: order_db
30-
ports:
31-
- 5432:5432
32-
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
33-
34-
env:
35-
MINOS_BROKER_QUEUE_HOST: postgres
36-
MINOS_REPOSITORY_HOST: postgres
37-
MINOS_SNAPSHOT_HOST: postgres
38-
3923
steps:
4024
- name: Check out repository code
4125
uses: actions/checkout@v2

0 commit comments

Comments
 (0)