-
Notifications
You must be signed in to change notification settings - Fork 40
50 lines (40 loc) · 1.16 KB
/
minos-microservice-cqrs-tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: "Test: minos-microservice-cqrs"
on:
push:
branches:
- main
- '*.*.x'
pull_request:
paths:
- 'packages/core/minos-microservice-cqrs/**'
- '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/core/minos-microservice-cqrs
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/core/minos-microservice-cqrs/coverage.xml
fail_ci_if_error: true
- name: Generate documentation
run: make docs
- name: Generate build
run: make dist