Skip to content

Commit

Permalink
passing runs-on
Browse files Browse the repository at this point in the history
  • Loading branch information
jmurret committed Mar 28, 2023
1 parent 9eed445 commit 8481706
Showing 1 changed file with 27 additions and 8 deletions.
35 changes: 27 additions & 8 deletions .github/workflows/go-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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]
Expand All @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand All @@ -175,6 +184,8 @@ jobs:
directory: .
go-version: "1.20"
runner-count: 12
runs-on: ${{ needs.setup.outputs.compute-xl }}


go-test-race:
needs:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -206,6 +219,7 @@ jobs:
with:
directory: envoyextensions
go-version: "1.20"
runs-on: ${{ needs.setup.outputs.compute-xl }}

go-test-troubleshoot:
needs:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -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:
Expand All @@ -251,6 +269,7 @@ jobs:
with:
directory: sdk
go-version: "1.20"
runs-on: ${{ needs.setup.outputs.compute-xl }}

noop:
runs-on: ubuntu-latest
Expand Down

0 comments on commit 8481706

Please sign in to comment.