-
Notifications
You must be signed in to change notification settings - Fork 0
98 lines (96 loc) · 3.23 KB
/
solution-convincing.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
---
name: Solution convincing
on:
merge_group:
branches:
- feature/**
- bugfix/**
pull_request:
branches:
- main
workflow_dispatch:
jobs:
uu-to-images:
name: Up to images
timeout-minutes: 10
runs-on: ubuntu-22.04
permissions:
checks: write
packages: write
pull-requests: write
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/prepare
with:
tools: python java docker
token: ${{ secrets.GITHUB_TOKEN }}
- run: ansible-playbook sources.yml -l lib:app
working-directory: .dx
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: >
ansible-playbook images.yml
-e binary_repo=maven.pkg.github.com
-e image_repo=ghcr.io
-e focus=solution
working-directory: .dx
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
with:
check_name: Unit Test Report
check_run_annotations: none
compare_to_earlier_commit: false
action_fail_on_inconclusive: true
action_fail: true
job_summary: false
comment_mode: off
files: |
libs/*/target/surefire-reports/TEST-*.xml
apps/*/target/surefire-reports/TEST-*.xml
- uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
with:
check_name: Integration Test Report
check_run_annotations: none
compare_to_earlier_commit: false
action_fail_on_inconclusive: true
action_fail: true
job_summary: false
comment_mode: off
files: |
libs/*/target/failsafe-reports/TEST-*.xml
apps/*/target/failsafe-reports/TEST-*.xml
- name: Always empty E2E test report. See https://github.com/orgs/community/discussions/13690
uses: EnricoMi/[email protected]
if: ${{ !cancelled() }}
with:
check_name: E2E Test Report
check_run_annotations: none
compare_to_earlier_commit: false
action_fail_on_inconclusive: true
action_fail: true
job_summary: false
comment_mode: off
files: tests/*/target/surefire-reports/TEST-*.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_UNITS) != '' }}
with:
title: Unit Coverage Report
paths: ${{ env.JACOCO_UNITS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_UNITS: .tools/target/coverage/units/jacoco.xml
- uses: madrapps/[email protected]
if: ${{ github.event_name == 'pull_request' && hashFiles(env.JACOCO_INTEGRATIONS) != '' }}
with:
title: Integration Coverage Report
paths: ${{ env.JACOCO_INTEGRATIONS }}
token: ${{ secrets.GITHUB_TOKEN }}
update-comment: true
env:
JACOCO_INTEGRATIONS: .tools/target/coverage/integrations/jacoco.xml