-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
27 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,10 +37,13 @@ jobs: | |
needs: | ||
- setup | ||
uses: ./.github/workflows/reusable-check-go-mod.yml | ||
with: | ||
runs-on: ${{ needs.setup.outputs.compute-medium }} | ||
|
||
check-generated-protobuf: | ||
needs: | ||
- setup | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected] | ||
|
@@ -64,7 +67,7 @@ jobs: | |
check-generated-deep-copy: | ||
needs: | ||
- setup | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected] | ||
|
@@ -84,7 +87,7 @@ jobs: | |
lint-enums: | ||
needs: | ||
- setup | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected] | ||
|
@@ -98,7 +101,7 @@ jobs: | |
lint-container-test-deps: | ||
needs: | ||
- setup | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected] | ||
|
@@ -112,7 +115,7 @@ jobs: | |
lint-consul-retry: | ||
needs: | ||
- setup | ||
runs-on: ubuntu-latest | ||
runs-on: ${{ fromJSON(needs.setup.outputs.compute-small) }} | ||
steps: | ||
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # [email protected] | ||
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # [email protected] | ||
|
@@ -127,20 +130,26 @@ jobs: | |
needs: | ||
- setup | ||
uses: ./.github/workflows/reusable-lint.yml | ||
with: | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
lint-32bit: | ||
needs: | ||
- setup | ||
uses: ./.github/workflows/reusable-lint.yml | ||
with: | ||
go-arch: "386" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
|
||
# create a development build | ||
dev-build: | ||
needs: | ||
- setup | ||
uses: ./.github/workflows/reusable-dev-build.yml | ||
|
||
with: | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
# TODO(JM): - linux arm64 is not available in our self-hosted runners | ||
# they are currently on the roadmap. | ||
# # create a development build for arm64 | ||
|
@@ -150,7 +159,7 @@ jobs: | |
# uses: ./.github/workflows/reusable-dev-build.yml | ||
# with: | ||
# uploaded-binary-name: 'consul-bin-arm64' | ||
# # runs-on: ${{ needs.setup.outputs.compute-arm64 }} | ||
# # runs-on: ${{ needs.setup.outputs.compute-xl-arm64 }} | ||
|
||
# go-test-arm64: | ||
# # TODO(JM): Fix to run on arm64 | ||
|
@@ -163,7 +172,7 @@ jobs: | |
# go-version: "1.20" | ||
# uploaded-binary-name: 'consul-bin-arm64' | ||
# runner-count: 12 | ||
# # runs-on: ${{ needs.setup.outputs.compute-arm64 }} | ||
# # runs-on: ${{ needs.setup.outputs.compute-xl-arm64 }} | ||
# go-test-flags: 'if ! [[ "$GITHUB_REF_NAME" =~ ^main$|^release/ ]]; then export GO_TEST_FLAGS="-short"; fi' | ||
|
||
go-test: | ||
|
@@ -175,6 +184,8 @@ jobs: | |
directory: . | ||
go-version: "1.20" | ||
runner-count: 12 | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
|
||
go-test-race: | ||
needs: | ||
|
@@ -186,6 +197,7 @@ jobs: | |
go-version: "1.20" | ||
go-test-flags: 'GO_TEST_FLAGS="-race -gcflags=all=-d=checkptr=0"' | ||
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/'" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-32bit: | ||
needs: | ||
|
@@ -197,6 +209,7 @@ jobs: | |
go-version: "1.20" | ||
go-arch: "386" | ||
go-test-flags: 'export GO_TEST_FLAGS="-short"' | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-envoyextensions: | ||
needs: | ||
|
@@ -206,6 +219,7 @@ jobs: | |
with: | ||
directory: envoyextensions | ||
go-version: "1.20" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-troubleshoot: | ||
needs: | ||
|
@@ -215,6 +229,7 @@ jobs: | |
with: | ||
directory: troubleshoot | ||
go-version: "1.20" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-api-1-19: | ||
needs: | ||
|
@@ -224,6 +239,7 @@ jobs: | |
with: | ||
directory: api | ||
go-version: "1.19" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-api-1-20: | ||
needs: | ||
|
@@ -233,6 +249,7 @@ jobs: | |
with: | ||
directory: api | ||
go-version: "1.20" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-sdk-1-19: | ||
needs: | ||
|
@@ -242,6 +259,7 @@ jobs: | |
with: | ||
directory: sdk | ||
go-version: "1.19" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
go-test-sdk-1-20: | ||
needs: | ||
|
@@ -251,6 +269,7 @@ jobs: | |
with: | ||
directory: sdk | ||
go-version: "1.20" | ||
runs-on: ${{ needs.setup.outputs.compute-xl }} | ||
|
||
noop: | ||
runs-on: ubuntu-latest | ||
|