aaa – Test #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Release Train – Test" | |
| run-name: "${{ inputs.callback-ref }} – Test" | |
| "on": | |
| workflow_dispatch: | |
| inputs: | |
| callback: | |
| description: "Repository to which a callback should be made upon completion" | |
| required: true | |
| type: "string" | |
| callback-ref: | |
| description: "Ref in the callback repository to which a callback should be made upon completion" | |
| required: true | |
| type: "string" | |
| release-train-maven-repository-url: | |
| description: "URL of a Maven repository to be used to resolve artifacts of projects earlier in the train" | |
| required: true | |
| type: "string" | |
| permissions: | |
| contents: "read" | |
| concurrency: | |
| group: "${{ github.workflow }}-${{ github.ref }}" | |
| jobs: | |
| test-release: | |
| name: "Test Release" | |
| runs-on: "ubuntu22-2-8" | |
| steps: | |
| - name: "Set up Java" | |
| id: "set-up-java" | |
| uses: "actions/setup-java@be666c2fcd27ec809703dec50e508c2fdc7f6654" # 5.2.0 | |
| with: | |
| distribution: "liberica" | |
| java-version: "17" | |
| - name: "Check Out Code" | |
| id: "check-out-code" | |
| uses: "actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd" # 6.0.2 | |
| with: | |
| ref: "${{ github.ref }}" | |
| - name: "Restore Build System Caches" | |
| id: "restore-build-system-caches" | |
| uses: "actions/cache/restore@27d5ce7f107fe9357f9df03efb73ab90386fccae" # 5.0.5 | |
| with: | |
| key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}" | |
| path: "~/.m2/repository" | |
| - name: "Test Release" | |
| id: "test-release" | |
| uses: "./.github/actions/release-train-test" | |
| env: | |
| RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_PASSWORD }}" | |
| RELEASE_TRAIN_MAVEN_REPOSITORY_URL: "${{ inputs.release-train-maven-repository-url }}" | |
| RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_USERNAME }}" | |
| - name: "Send Callback" | |
| id: "send-callback" | |
| if: "${{ !cancelled() }}" | |
| env: | |
| GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}" | |
| run: "gh workflow run callback --repo ${{ inputs.callback }} --ref ${{ inputs.callback-ref }} --field release-branch=${{ github.ref_name }} --field release-repository=${{ github.repository }} --field result=${{ job.status == 'success' && 'tested' || 'test-failed' }}" | |
| - name: "Upload Build System Reports" | |
| id: "upload-build-system-reports" | |
| if: "${{ failure() }}" | |
| uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # 7.0.1 | |
| with: | |
| name: "build-system-reports" | |
| path: |- | |
| **/target/surefire-reports | |
| **/target/failsafe-reports |