Skip to content

Commit

Permalink
added show-java-check-status into compound-java-check
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikita-Smirnov-Exactpro committed Dec 19, 2024
1 parent 38f9b80 commit 05e57e5
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions .github/workflows/compound-java-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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 }}
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 }}'"

0 comments on commit 05e57e5

Please sign in to comment.