Skip to content

Commit

Permalink
include enterprise
Browse files Browse the repository at this point in the history
  • Loading branch information
hghaf099 committed Aug 17, 2023
1 parent e109fb3 commit d30a3e1
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions .github/workflows/test-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,18 @@ jobs:
# in the external tests. However, it would be also good to run the vault package with
# to validate the tag and also validate the vault package tests that are tagged with
# test only. There is only going to be two tests runners for testonly job.
jq --arg PKG "github.com/hashicorp/vault/vault" \
'.include[1] = {
"id": 1,
"estimatedRuntime": "N/A",
"packages": $PKG,
"description": "partition 1 - vault test packages"
}' testonly_matrix.json > matrix.json
if [ "${{ inputs.enterprise }}" == "true" ]; then
export VAULT_TEST_PACKAGE="github.com/hashicorp/vault-enterprise/vault"
else
export VAULT_TEST_PACKAGE="github.com/hashicorp/vault/vault"
fi
jq --arg VAULT_PKG "${VAULT_TEST_PACKAGE}" \
'.include[1] = {
"id": 1,
"estimatedRuntime": "N/A",
"packages": $VAULT_PKG,
"description": "partition 1 - vault test packages"
}' testonly_matrix.json > matrix.json
- name: Capture list of binary tests
if: inputs.binary-tests
Expand Down

0 comments on commit d30a3e1

Please sign in to comment.