backport of commit 525bce060d (#19869)

Co-authored-by: Kuba Wieczorek <kuba.wieczorek@hashicorp.com>
This commit is contained in:
hc-github-team-secure-vault-core
2023-03-30 16:20:20 -04:00
committed by GitHub
parent 2ec4fbf688
commit db9434877d
2 changed files with 9 additions and 12 deletions

View File

@@ -119,7 +119,6 @@ jobs:
if: ${{ ! (startsWith( github.ref_name, 'ui/' ) || startsWith( github.ref_name, 'docs/' ) || startsWith( github.ref_name, 'backport/docs/') ) }}
uses: ./.github/workflows/test-go.yml
with:
name: ''
total-runners: 16
go-arch: amd64
go-build-tags: '${{ needs.setup.outputs.go-build-tags }},deadlock'
@@ -135,7 +134,6 @@ jobs:
if: ${{ ! (startsWith( github.ref_name, 'ui/' ) || startsWith( github.ref_name, 'docs/' ) || startsWith( github.ref_name, 'backport/docs/') ) }}
uses: ./.github/workflows/test-go.yml
with:
name: race
total-runners: 16
env-vars: |
{
@@ -158,7 +156,6 @@ jobs:
- setup-go-cache
uses: ./.github/workflows/test-go.yml
with:
name: fips
total-runners: 16
env-vars: |
{

View File

@@ -1,10 +1,6 @@
on:
workflow_call:
inputs:
name:
description: A suffix to be added to the matrix job names.
required: true
type: string
go-arch:
description: The execution architecture (arm, amd64, etc.)
required: true
@@ -26,15 +22,19 @@ on:
description: A space-separated list of additional build flags.
required: false
type: string
go-build-tags:
description: A comma-separated list of additional build tags to consider satisfied during the build.
required: false
type: string
matrix-job-name:
description: A suffix to be added to the matrix job names.
required: false
type: string
runs-on:
description: An expression indicating which kind of runners to use.
required: false
type: string
default: ubuntu-latest
go-build-tags:
description: A comma-separated list of additional build tags to consider satisfied during the build.
required: false
type: string
env: ${{ fromJSON(inputs.env-vars) }}
@@ -67,7 +67,7 @@ jobs:
permissions:
id-token: write # Note: this permission is explicitly required for Vault auth
contents: read
name: "${{ matrix.runner-index }} ${{ inputs.name }}"
name: "${{ matrix.runner-index }} ${{ inputs.matrix-job-name }}"
needs:
- runner-indexes
runs-on: ${{ fromJSON(inputs.runs-on) }}