@@ -77,10 +77,21 @@ jobs:
7777 verify-reproducibility :
7878 needs : [ deploy-snapshot, deploy-release ]
7979 if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
80+ name : " verify-reproducibility (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
8081 uses : apache/logging-parent/.github/workflows/verify-reproducibility-reusable.yaml@rel/12.0.0
8182 with :
8283 nexus-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
83- # Checkout the repository by branch name, since the deployment job might add commits to the branch
84- ref : ${{ github.ref_name }}
8584 # Encode the `runs-on` input as JSON array
8685 runs-on : ' ["ubuntu-latest", "macos-latest", "windows-latest"]'
86+
87+ # Run integration-tests automatically after a snapshot or RC is published
88+ integration-test :
89+ needs : [ deploy-snapshot, deploy-release ]
90+ if : ${{ always() && (needs.deploy-snapshot.result == 'success' || needs.deploy-release.result == 'success') }}
91+ name : " integration-test (${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }})"
92+ uses : apache/logging-log4j-samples/.github/workflows/integration-test.yaml@main
93+ with :
94+ log4j-version : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.project-version || needs.deploy-snapshot.outputs.project-version }}
95+ log4j-repository-url : ${{ needs.deploy-release.result == 'success' && needs.deploy-release.outputs.nexus-url || needs.deploy-snapshot.outputs.nexus-url }}
96+ # Use the `main` branch of `logging-log4j-samples`
97+ samples-ref : ' refs/heads/main'
0 commit comments