From 05e57e5968738b4f710f3fa7d11f5a2b2d645238 Mon Sep 17 00:00:00 2001 From: "nikita.smirnov" Date: Thu, 19 Dec 2024 17:58:24 +0400 Subject: [PATCH] added show-java-check-status into compound-java-check --- .github/workflows/compound-java-check.yml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.github/workflows/compound-java-check.yml b/.github/workflows/compound-java-check.yml index d4ea960..50b6cfd 100644 --- a/.github/workflows/compound-java-check.yml +++ b/.github/workflows/compound-java-check.yml @@ -59,10 +59,10 @@ on: license-check: value: ${{ (inputs.strict-scanner && jobs.license-check.result == 'success' || !inputs.strict-scanner) }} integration-test: - value: ${{ (inputs.integration-test-enabled && jobs.integration-test == 'success' || !inputs.integration-test-enabled) }} + value: ${{ (inputs.integration-test-enabled && jobs.integration-test.result == 'success' || !inputs.integration-test-enabled) }} aggregated-status: description: "Aggregated status" - value: ${{ (inputs.strict-scanner && jobs.owasp-scan.result == 'success' || !inputs.strict-scanner) && (inputs.strict-scanner && jobs.license-check.result == 'success' || !inputs.strict-scanner) && (inputs.integration-test-enabled && jobs.integration-test == 'success' || !inputs.integration-test-enabled) }} + value: ${{ (inputs.strict-scanner && jobs.owasp-scan.result == 'success' || !inputs.strict-scanner) && (inputs.strict-scanner && jobs.license-check.result == 'success' || !inputs.strict-scanner) && (inputs.integration-test-enabled && jobs.integration-test.result == 'success' || !inputs.integration-test-enabled) }} jobs: owasp-scan: @@ -97,4 +97,15 @@ jobs: java-version: ${{ inputs.java-version }} java-vendor: ${{ inputs.java-vendor }} project-path: ${{ matrix.integration-test-project }} - integration-test-task: ${{ inputs.integration-test-task }} \ No newline at end of file + integration-test-task: ${{ inputs.integration-test-task }} + + show-java-check-status: + name: 'Java check status' + if: always() + runs-on: ${{ inputs.runs-on }} + needs: [owasp-scan, license-check, integration-test] + steps: + - run: | + echo "owasp-scan: '${{ needs.owasp-scan.result }}'" + echo "license-check: '${{ needs.license-check.result }}'" + echo "integration-test: '${{ needs.integration-test.result }}'" \ No newline at end of file