CSL-11197: Fix rollout restart for API Gateway deployment #2940
This file contains hidden or 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
# Dispatch to the consul-k8s-workflows when a PR is created and on merges to main/release* | |
name: lint | |
on: | |
pull_request: | |
jobs: | |
get-go-version: | |
uses: ./.github/workflows/reusable-get-go-version.yml | |
linting: | |
name: golangci-lint | |
needs: | |
- get-go-version | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4 | |
- name: Setup go | |
uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1 | |
with: | |
go-version: ${{ needs.get-go-version.outputs.go-version }} | |
cache: false | |
- name: Setup GOROOT # Need to set GOROOT because an older version of go-critic used GOROOT to find rules | |
run: echo "GOROOT=$(go env GOROOT)" >> "${GITHUB_ENV}" | |
- name: golangci-lint-helm-gen | |
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
with: | |
version: "v2.2.1" | |
working-directory: hack/helm-reference-gen | |
skip-cache: true # We have seen sticky timeout bugs crop up with caching enabled, so disabling for now | |
args: "--no-config --enable govet" | |
- name: golangci-lint-control-plane | |
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
with: | |
version: "v2.2.1" | |
working-directory: control-plane | |
skip-cache: true # We have seen sticky timeout bugs crop up with caching enabled, so disabling for now | |
args: --verbose | |
- name: golangci-lint-acceptance | |
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
with: | |
version: "v2.2.1" | |
working-directory: acceptance | |
skip-cache: true # We have seen sticky timeout bugs crop up with caching enabled, so disabling for now | |
- name: golangci-lint-cli | |
uses: golangci/golangci-lint-action@4afd733a84b1f43292c63897423277bb7f4313a9 # v8.0.0 | |
with: | |
version: "v2.2.1" | |
working-directory: acceptance | |
skip-cache: true # We have seen sticky timeout bugs crop up with caching enabled, so disabling for now |