From 0a884689a0266951ca0a72da4f50238597a90438 Mon Sep 17 00:00:00 2001 From: Ryan Cragun Date: Tue, 13 Dec 2022 12:00:58 -0700 Subject: [PATCH] test: add build artifacts to release testing workflow (#18336) Add build artifacts to release testing workflow Signed-off-by: Ryan Cragun --- .github/workflows/enos-release-testing-oss.yml | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/.github/workflows/enos-release-testing-oss.yml b/.github/workflows/enos-release-testing-oss.yml index 0fa99e6f8..389dac398 100644 --- a/.github/workflows/enos-release-testing-oss.yml +++ b/.github/workflows/enos-release-testing-oss.yml @@ -12,18 +12,25 @@ jobs: runs-on: ubuntu-latest outputs: matrix-test-group: ${{ steps.matrix-group.outputs.matrix-test-group }} + vault-revision: ${{ steps.get-metadata.outputs.vault-revision }} + vault-version: ${{ steps.get-metadata.outputs.vault-version }} steps: - uses: actions/checkout@v3 + with: + ref: ${{ github.event.client_payload.payload.sha }} - id: matrix-group env: # MATRIX_MAX_TEST_GROUPS is required to determine the randomly selected # test group. It should be set to the highest test_group used in the # enos-run-matrices. MATRIX_MAX_TEST_GROUPS: 2 - run: echo "matrix-test-group=$(make ci-get-matrix-group-id)" >> $GITHUB_OUTPUT + run: | + echo "matrix-test-group=$(make ci-get-matrix-group-id)" >> $GITHUB_OUTPUT + echo "vault-revision=$(make ci-get-revision)" >> $GITHUB_OUTPUT + echo "vault-version=$(make ci-get-version)" >> $GITHUB_OUTPUT test: - name: Test ${{ matrix.matrix-file-name }} + name: Test ${{ matrix.build-artifact-name }} if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }} needs: metadata uses: ./.github/workflows/enos-run.yml @@ -32,12 +39,12 @@ jobs: matrix: include: - matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-amd64-zip - test-name: Linux AMD64 Zip + build-artifact-name: vault_${{ needs.product-metadata.outputs.vault-version }}_linux_amd64.zip - matrix-file-name: enos_release_testing_oss-artifactory-oss-linux-arm64-zip - test-name: Linux ARM64 Zip + build-artifact-name: vault_${{ needs.product-metadata.outputs.vault-version }}_linux_arm64.zip with: matrix-file-name: ${{ matrix.test-name }} matrix-test-group: ${{ needs.metadata.outputs.matrix-test-group }} vault-edition: oss - vault-revision: ${{ github.event.client_payload.payload.sha }} + vault-revision: ${{ needs.product-metadata.outputs.vault-revision }} secrets: inherit