Skip to content

Commit

Permalink
Merge pull request #407 from minos-framework/0.7.0.dev2
Browse files Browse the repository at this point in the history
0.7.0.dev2
  • Loading branch information
Sergio García Prado authored Apr 21, 2022
2 parents 94dd238 + 485ca21 commit a81c39a
Show file tree
Hide file tree
Showing 378 changed files with 13,940 additions and 7,548 deletions.
13 changes: 0 additions & 13 deletions .github/workflows/minos-broker-kafka-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,6 @@ jobs:
working-directory: packages/plugins/minos-broker-kafka

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

zookeeper:
image: wurstmeister/zookeeper:latest
ports:
Expand All @@ -44,10 +34,7 @@ jobs:
KAFKA_ADVERTISED_HOST_NAME: kafka
KAFKA_DELETE_TOPIC_ENABLE: "true"
env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: kafka
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
Expand Down
17 changes: 1 addition & 16 deletions .github/workflows/minos-broker-rabbitmq-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,13 @@ jobs:
defaults:
run:
working-directory: packages/plugins/minos-broker-rabbitmq

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

rabbitmq:
image: rabbitmq:3
ports:
- "5672:5672"

- 5672:5672
env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: rabbitmq
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/minos-database-aiopg-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Publish: minos-database-aiopg"

on:
push:
branches:
- '*.*.x'
paths:
- 'packages/plugins/minos-database-aiopg/**'

jobs:
deploy:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-database-aiopg

steps:

- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Publish package
run: make release
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
64 changes: 64 additions & 0 deletions .github/workflows/minos-database-aiopg-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: "Test: minos-database-aiopg"

on:
push:
branches:
- main
- '*.*.x'
pull_request:
paths:
- 'packages/plugins/minos-database-aiopg/**'
- 'packages/core/minos-microservice-aggregate/**'
- 'packages/core/minos-microservice-networks/**'
- 'packages/core/minos-microservice-common/**'

jobs:
build:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-database-aiopg

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_DATABASES_DEFAULT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Lint package
run: make lint

- name: Test package with coverage
run: make coverage

- name: Publish coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/plugins/minos-database-aiopg/coverage.xml
fail_ci_if_error: true

- name: Generate documentation
run: make docs

- name: Generate build
run: make dist
33 changes: 33 additions & 0 deletions .github/workflows/minos-database-lmdb-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Publish: minos-database-lmdb"

on:
push:
branches:
- '*.*.x'
paths:
- 'packages/plugins/minos-database-lmdb/**'

jobs:
deploy:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-database-lmdb

steps:

- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Publish package
run: make release
env:
POETRY_HTTP_BASIC_PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}
POETRY_HTTP_BASIC_PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
49 changes: 49 additions & 0 deletions .github/workflows/minos-database-lmdb-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: "Test: minos-database-lmdb"

on:
push:
branches:
- main
- '*.*.x'
pull_request:
paths:
- 'packages/plugins/minos-database-lmdb/**'
- 'packages/core/minos-microservice-saga/**'
- 'packages/core/minos-microservice-common/**'

jobs:
build:
runs-on: ubuntu-latest
container: python:3.9-buster
defaults:
run:
working-directory: packages/plugins/minos-database-lmdb

steps:
- name: Check out repository code
uses: actions/checkout@v2

- name: Install Poetry
uses: snok/install-poetry@v1

- name: Install dependencies
run: make install

- name: Lint package
run: make lint

- name: Test package with coverage
run: make coverage

- name: Publish coverage
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./packages/plugins/minos-database-lmdb/coverage.xml
fail_ci_if_error: true

- name: Generate documentation
run: make docs

- name: Generate build
run: make dist
17 changes: 0 additions & 17 deletions .github/workflows/minos-http-aiohttp-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ jobs:
run:
working-directory: packages/plugins/minos-http-aiohttp

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: kafka
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/minos-microservice-aggregate-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,6 @@ jobs:
run:
working-directory: packages/core/minos-microservice-aggregate

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/minos-microservice-common-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,22 +17,6 @@ jobs:
run:
working-directory: packages/core/minos-microservice-common

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/minos-microservice-cqrs-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,6 @@ jobs:
run:
working-directory: packages/core/minos-microservice-cqrs

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/minos-microservice-networks-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ jobs:
run:
working-directory: packages/core/minos-microservice-networks

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: kafka
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
17 changes: 0 additions & 17 deletions .github/workflows/minos-router-graphql-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,6 @@ jobs:
run:
working-directory: packages/plugins/minos-router-graphql

services:
postgres:
image: postgres
env:
POSTGRES_USER: minos
POSTGRES_PASSWORD: min0s
POSTGRES_DB: order_db
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

env:
MINOS_BROKER_QUEUE_HOST: postgres
MINOS_BROKER_HOST: kafka
MINOS_REPOSITORY_HOST: postgres
MINOS_SNAPSHOT_HOST: postgres

steps:
- name: Check out repository code
uses: actions/checkout@v2
Expand Down
Loading

0 comments on commit a81c39a

Please sign in to comment.