test: normalize job and steps between build and release test workflows (#18425)
Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
parent
caf8f83cd4
commit
ebbbcf7e5e
|
@ -7,18 +7,20 @@ on:
|
|||
- enos-release-testing-oss::*
|
||||
|
||||
jobs:
|
||||
metadata:
|
||||
product-metadata:
|
||||
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
|
||||
runs-on: ubuntu-latest
|
||||
outputs:
|
||||
matrix-test-group: ${{ steps.matrix-group.outputs.matrix-test-group }}
|
||||
matrix-test-group: ${{ steps.get-metadata.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:
|
||||
# Check out the repository at the same Git SHA that was used to create
|
||||
# the artifacts to get the correct metadata.
|
||||
ref: ${{ github.event.client_payload.payload.sha }}
|
||||
- id: matrix-group
|
||||
- id: get-metadata
|
||||
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
|
||||
|
@ -32,7 +34,7 @@ jobs:
|
|||
test:
|
||||
name: Test ${{ matrix.build-artifact-name }}
|
||||
if: ${{ startsWith(github.event.client_payload.payload.branch, 'release/') }}
|
||||
needs: metadata
|
||||
needs: product-metadata
|
||||
uses: ./.github/workflows/enos-run.yml
|
||||
strategy:
|
||||
fail-fast: false
|
||||
|
@ -45,7 +47,7 @@ jobs:
|
|||
with:
|
||||
build-artifact-name: ${{ matrix.build-artifact-name }}
|
||||
matrix-file-name: ${{ matrix.matrix-file-name }}
|
||||
matrix-test-group: ${{ needs.metadata.outputs.matrix-test-group }}
|
||||
matrix-test-group: ${{ needs.product-metadata.outputs.matrix-test-group }}
|
||||
vault-edition: oss
|
||||
vault-revision: ${{ needs.product-metadata.outputs.vault-revision }}
|
||||
secrets: inherit
|
||||
|
|
Loading…
Reference in New Issue