Skip to content

Commit 9a6ad67

Browse files
author
Sergio García Prado
authored
Merge pull request #460 from minos-framework/0.7.0-documentation
0.7.0 (documentation)
2 parents 0fdd4c9 + f9f6ae4 commit 9a6ad67

File tree

578 files changed

+18343
-18124
lines changed

Some content is hidden

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

578 files changed

+18343
-18124
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
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: "Publish: minos-discovery-kong"
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.*.x'
7+
paths:
8+
- 'packages/plugins/minos-discovery-kong/**'
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-kong
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: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
name: "Test: minos-discovery-kong"
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- '*.*.x'
8+
pull_request:
9+
paths:
10+
- 'packages/plugins/minos-discovery-kong/**'
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+
services:
19+
postgres:
20+
image: postgres:9.5
21+
env:
22+
POSTGRES_DB: kong
23+
POSTGRES_USER: kong
24+
POSTGRES_PASSWORD: kong
25+
ports:
26+
# Maps tcp port 5432 on service container to the host
27+
- 5432:5432
28+
defaults:
29+
run:
30+
working-directory: packages/plugins/minos-discovery-kong
31+
32+
steps:
33+
- name: Check out repository code
34+
uses: actions/checkout@v2
35+
36+
- name: Install dependencies
37+
run: apt install -y curl apt-transport-https
38+
39+
- name: Update apt list
40+
run: echo "deb [trusted=yes] https://download.konghq.com/gateway-2.x-debian-buster/ default all" | tee /etc/apt/sources.list.d/kong.list
41+
42+
- name: Install kong
43+
run: apt-get update && apt install -y kong-enterprise-edition=2.8.0.0
44+
45+
- name: Set env variables
46+
run: |
47+
echo "KONG_DATABASE=postgres" >> $GITHUB_ENV
48+
echo "KONG_PG_DATABASE=kong" >> $GITHUB_ENV
49+
echo "KONG_PG_HOST=postgres" >> $GITHUB_ENV
50+
echo "KONG_PG_USER=kong" >> $GITHUB_ENV
51+
echo "KONG_PG_PASSWORD=kong" >> $GITHUB_ENV
52+
echo "KONG_ADMIN_ACCESS_LOG=/dev/stdout" >> $GITHUB_ENV
53+
echo "KONG_ADMIN_ERROR_LOG=/dev/stderr" >> $GITHUB_ENV
54+
echo "KONG_PROXY_LISTEN=0.0.0.0:8000" >> $GITHUB_ENV
55+
echo "KONG_ADMIN_LISTEN=0.0.0.0:8001" >> $GITHUB_ENV
56+
echo "KONG_PROXY_ACCESS_LOG=/dev/stdout" >> $GITHUB_ENV
57+
echo "KONG_PROXY_ERROR_LOG=/dev/stderr" >> $GITHUB_ENV
58+
echo "KONG_LOG_LEVEL=debug" >> $GITHUB_ENV
59+
60+
- name: Kong Migration
61+
run: kong migrations bootstrap && kong migrations up && kong migrations finish
62+
63+
- name: Kong Start
64+
run: kong start
65+
66+
- name: Install Poetry
67+
uses: snok/install-poetry@v1
68+
69+
- name: Install dependencies
70+
run: make install
71+
72+
- name: Lint package
73+
run: make lint
74+
75+
- name: Test package with coverage
76+
run: make coverage
77+
78+
- name: Publish coverage
79+
uses: codecov/codecov-action@v2
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
82+
files: ./packages/plugins/minos-discovery-kong/coverage.xml
83+
fail_ci_if_error: true
84+
85+
- name: Generate build
86+
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

0 commit comments

Comments
 (0)