Skip to content

Workflow status check #71

Workflow status check

Workflow status check #71

Workflow file for this run

---
name: Convincing
on:
merge_group:
branches:
- feature/**
- bugfix/**
- chore/**
pull_request:
branches:
- main
workflow_dispatch:
jobs:
up-to-images:
name: Up to images
timeout-minutes: 10
runs-on: ubuntu-22.04
permissions:
checks: write
packages: write
steps:
- uses: actions/[email protected]
- uses: ./.github/actions/prepare
with:
tools: python java docker
token: ${{ secrets.GITHUB_TOKEN }}
- run: ansible-playbook codebase.yaml
working-directory: bakers/ansible
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- id: images
run: >-
ansible-playbook images.yaml
-e binary_storage=maven.pkg.github.com
-e image_storage=ghcr.io
working-directory: bakers/ansible
env:
GITHUB_ACTOR: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: mikepenz/[email protected]
if: ${{ !cancelled() && (steps.images.outcome == 'success' || steps.images.outcome == 'failure') }}
with:
check_name: Unit test report
report_paths: "**/target/surefire-reports/TEST-*.xml"
require_tests: "${{ steps.images.outcome == 'failure' }}"
fail_on_failure: false
job_summary: false
- uses: mikepenz/[email protected]
if: ${{ !cancelled() && (steps.images.outcome == 'success' || steps.images.outcome == 'failure') }}
with:
check_name: Integration test report
report_paths: "**/target/failsafe-reports/TEST-*.xml"
require_tests: "${{ steps.images.outcome == 'failure' }}"
fail_on_failure: false
job_summary: false
- uses: actions/[email protected]
if: ${{ !cancelled() }}
with:
name: test-coverage-report
path: tools/target/coverage
if-no-files-found: ignore
everything-is-fine:
name: Everything is fine
needs: [up-to-images]
runs-on: ubuntu-latest
if: ${{ always() }}
steps:
- if: ${{ !success() }}
run: |
echo "::error::Something went wrong"
exit 1