|
|
@ -4,12 +4,12 @@ on:
|
|
|
|
pull_request:
|
|
|
|
pull_request:
|
|
|
|
branches-ignore:
|
|
|
|
branches-ignore:
|
|
|
|
- stable-website
|
|
|
|
- stable-website
|
|
|
|
- 'docs/**'
|
|
|
|
- "docs/**"
|
|
|
|
- 'ui/**'
|
|
|
|
- "ui/**"
|
|
|
|
- 'mktg-**' # Digital Team Terraform-generated branches' prefix
|
|
|
|
- "mktg-**" # Digital Team Terraform-generated branches' prefix
|
|
|
|
- 'backport/docs/**'
|
|
|
|
- "backport/docs/**"
|
|
|
|
- 'backport/ui/**'
|
|
|
|
- "backport/ui/**"
|
|
|
|
- 'backport/mktg-**'
|
|
|
|
- "backport/mktg-**"
|
|
|
|
push:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
branches:
|
|
|
|
# Push events on the main branch
|
|
|
|
# Push events on the main branch
|
|
|
@ -64,7 +64,7 @@ jobs:
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version-file: 'go.mod'
|
|
|
|
go-version-file: "go.mod"
|
|
|
|
- run: make proto-tools
|
|
|
|
- run: make proto-tools
|
|
|
|
name: Install protobuf
|
|
|
|
name: Install protobuf
|
|
|
|
- run: make proto-format
|
|
|
|
- run: make proto-format
|
|
|
@ -85,14 +85,14 @@ jobs:
|
|
|
|
- setup
|
|
|
|
- setup
|
|
|
|
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
|
|
|
|
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3.3.0
|
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
|
|
|
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
|
|
|
- name: Setup Git
|
|
|
|
- name: Setup Git
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version-file: 'go.mod'
|
|
|
|
go-version-file: "go.mod"
|
|
|
|
- run: make codegen-tools
|
|
|
|
- run: make codegen-tools
|
|
|
|
name: Install deep-copy
|
|
|
|
name: Install deep-copy
|
|
|
|
- run: make --always-make deep-copy
|
|
|
|
- run: make --always-make deep-copy
|
|
|
@ -110,14 +110,14 @@ jobs:
|
|
|
|
- setup
|
|
|
|
- setup
|
|
|
|
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
|
|
|
|
runs-on: ${{ fromJSON(needs.setup.outputs.compute-large) }}
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # pin@v3.3.0
|
|
|
|
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
|
|
|
|
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
|
|
|
# NOTE: This step is specifically needed for ENT. It allows us to access the required private HashiCorp repos.
|
|
|
|
- name: Setup Git
|
|
|
|
- name: Setup Git
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
if: ${{ endsWith(github.repository, '-enterprise') }}
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
- uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version-file: 'go.mod'
|
|
|
|
go-version-file: "go.mod"
|
|
|
|
- run: go install github.com/reillywatson/enumcover/cmd/enumcover@master && enumcover ./...
|
|
|
|
- run: go install github.com/reillywatson/enumcover/cmd/enumcover@master && enumcover ./...
|
|
|
|
- name: Notify Slack
|
|
|
|
- name: Notify Slack
|
|
|
|
if: ${{ failure() }}
|
|
|
|
if: ${{ failure() }}
|
|
|
@ -135,8 +135,8 @@ jobs:
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
run: git config --global url."https://${{ secrets.ELEVATED_GITHUB_TOKEN }}:@github.com".insteadOf "https://github.com"
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
- uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # pin@v3.5.0
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
go-version-file: 'go.mod'
|
|
|
|
go-version-file: "go.mod"
|
|
|
|
- run: go install github.com/hashicorp/lint-consul-retry@master && lint-consul-retry
|
|
|
|
- run: go install github.com/hashicorp/lint-consul-retry@v1.3.0 && lint-consul-retry
|
|
|
|
- name: Notify Slack
|
|
|
|
- name: Notify Slack
|
|
|
|
if: ${{ failure() }}
|
|
|
|
if: ${{ failure() }}
|
|
|
|
run: .github/scripts/notify_slack.sh
|
|
|
|
run: .github/scripts/notify_slack.sh
|
|
|
|