always test oss and conditionally test enterprise (#16827)
This commit is contained in:
parent
e61d49d87d
commit
bfadfa52db
|
@ -211,7 +211,7 @@ jobs:
|
|||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
||||
go-test:
|
||||
go-test-oss:
|
||||
needs:
|
||||
- setup
|
||||
- dev-build
|
||||
|
@ -221,6 +221,22 @@ jobs:
|
|||
runner-count: 12
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
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:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -236,6 +252,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)'"
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -251,6 +268,7 @@ jobs:
|
|||
go-test-flags: 'export GO_TEST_FLAGS="-short"'
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -264,6 +282,7 @@ jobs:
|
|||
directory: envoyextensions
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -277,6 +296,7 @@ jobs:
|
|||
directory: troubleshoot
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -290,6 +310,7 @@ jobs:
|
|||
directory: api
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -303,6 +324,7 @@ jobs:
|
|||
directory: api
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -316,6 +338,7 @@ jobs:
|
|||
directory: sdk
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
@ -329,6 +352,7 @@ jobs:
|
|||
directory: sdk
|
||||
runs-on: ${{ needs.setup.outputs.compute-xl }}
|
||||
repository-name: ${{ github.repository }}
|
||||
go-tags: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
secrets:
|
||||
elevated-github-token: ${{ secrets.ELEVATED_GITHUB_TOKEN }}
|
||||
consul-license: ${{secrets.CONSUL_LICENSE}}
|
||||
|
|
|
@ -33,6 +33,10 @@ on:
|
|||
repository-name:
|
||||
required: true
|
||||
type: string
|
||||
go-tags:
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
secrets:
|
||||
elevated-github-token:
|
||||
required: true
|
||||
|
@ -44,7 +48,7 @@ env:
|
|||
GOARCH: ${{inputs.go-arch}}
|
||||
TOTAL_RUNNERS: ${{inputs.runner-count}}
|
||||
CONSUL_LICENSE: ${{secrets.consul-license}}
|
||||
GOTAGS: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
GOTAGS: ${{ inputs.go-tags}}
|
||||
|
||||
jobs:
|
||||
set-test-package-matrix:
|
||||
|
|
|
@ -29,6 +29,10 @@ on:
|
|||
repository-name:
|
||||
required: true
|
||||
type: string
|
||||
go-tags:
|
||||
required: false
|
||||
type: string
|
||||
default: ""
|
||||
secrets:
|
||||
elevated-github-token:
|
||||
required: true
|
||||
|
@ -39,7 +43,7 @@ env:
|
|||
GOTESTSUM_VERSION: 1.8.2
|
||||
GOARCH: ${{inputs.go-arch}}
|
||||
CONSUL_LICENSE: ${{secrets.consul-license}}
|
||||
GOTAGS: "${{ github.event.repository.name == 'consul-enterprise' && 'consulent consulprem consuldev' || '' }}"
|
||||
GOTAGS: ${{ inputs.go-tags}}
|
||||
|
||||
jobs:
|
||||
go-test:
|
||||
|
|
Loading…
Reference in New Issue