mirror of https://github.com/hashicorp/consul
Co-authored-by: John Murret <john.murret@hashicorp.com>pull/16930/head
parent
cedcd1119f
commit
a3d3607d3b
|
@ -213,7 +213,7 @@ jobs:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
|
||||||
go-test:
|
go-test-oss:
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
- dev-build
|
- dev-build
|
||||||
|
@ -223,6 +223,22 @@ jobs:
|
||||||
runner-count: 12
|
runner-count: 12
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: ""
|
||||||
|
secrets:
|
||||||
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
|
||||||
|
go-test-enterprise:
|
||||||
|
needs:
|
||||||
|
- setup
|
||||||
|
- dev-build
|
||||||
|
uses: ./.github/workflows/reusable-unit-split.yml
|
||||||
|
with:
|
||||||
|
directory: .
|
||||||
|
runner-count: 12
|
||||||
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -238,6 +254,7 @@ jobs:
|
||||||
package-names-command: "go list ./... | grep -E -v '^github.com/hashicorp/consul/agent(/consul|/local|/routine-leak-checker)?$' | grep -E -v '^github.com/hashicorp/consul(/command|/connect|/snapshot)'"
|
package-names-command: "go list ./... | grep -E -v '^github.com/hashicorp/consul/agent(/consul|/local|/routine-leak-checker)?$' | grep -E -v '^github.com/hashicorp/consul(/command|/connect|/snapshot)'"
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -253,6 +270,7 @@ jobs:
|
||||||
go-test-flags: 'export GO_TEST_FLAGS="-short"'
|
go-test-flags: 'export GO_TEST_FLAGS="-short"'
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -266,6 +284,7 @@ jobs:
|
||||||
directory: envoyextensions
|
directory: envoyextensions
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -279,6 +298,7 @@ jobs:
|
||||||
directory: troubleshoot
|
directory: troubleshoot
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -292,6 +312,7 @@ jobs:
|
||||||
directory: api
|
directory: api
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -305,6 +326,7 @@ jobs:
|
||||||
directory: api
|
directory: api
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -318,6 +340,7 @@ jobs:
|
||||||
directory: sdk
|
directory: sdk
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
@ -331,6 +354,7 @@ jobs:
|
||||||
directory: sdk
|
directory: sdk
|
||||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||||
repository-name: ${{ github.repository }}
|
repository-name: ${{ github.repository }}
|
||||||
|
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||||
|
|
|
@ -33,6 +33,10 @@ on:
|
||||||
repository-name:
|
repository-name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
go-tags:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token:
|
elevated-github-token:
|
||||||
required: true
|
required: true
|
||||||
|
@ -44,7 +48,7 @@ env:
|
||||||
GOARCH: ${{inputs.go-arch}}
|
GOARCH: ${{inputs.go-arch}}
|
||||||
TOTAL_RUNNERS: ${{inputs.runner-count}}
|
TOTAL_RUNNERS: ${{inputs.runner-count}}
|
||||||
CONSUL_LICENSE: ${{secrets.consul-license}}
|
CONSUL_LICENSE: ${{secrets.consul-license}}
|
||||||
GOTAGS: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
GOTAGS: ${{ inputs.go-tags}}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
set-test-package-matrix:
|
set-test-package-matrix:
|
||||||
|
|
|
@ -29,6 +29,10 @@ on:
|
||||||
repository-name:
|
repository-name:
|
||||||
required: true
|
required: true
|
||||||
type: string
|
type: string
|
||||||
|
go-tags:
|
||||||
|
required: false
|
||||||
|
type: string
|
||||||
|
default: ""
|
||||||
secrets:
|
secrets:
|
||||||
elevated-github-token:
|
elevated-github-token:
|
||||||
required: true
|
required: true
|
||||||
|
@ -39,7 +43,7 @@ env:
|
||||||
GOTESTSUM_VERSION: 1.8.2
|
GOTESTSUM_VERSION: 1.8.2
|
||||||
GOARCH: ${{inputs.go-arch}}
|
GOARCH: ${{inputs.go-arch}}
|
||||||
CONSUL_LICENSE: ${{secrets.consul-license}}
|
CONSUL_LICENSE: ${{secrets.consul-license}}
|
||||||
GOTAGS: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
GOTAGS: ${{ inputs.go-tags}}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
go-test:
|
go-test:
|
||||||
|
|
Loading…
Reference in New Issue