feat: update cluster bindings in read-only mode (#1963) #1331
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
name: CI / Controller | |
on: | |
push: | |
branches: | |
- "master" | |
paths: | |
- ".github/workflows/controller.yaml" | |
- "go/controller/**" | |
pull_request: | |
branches: | |
- "**" | |
paths: | |
- ".github/workflows/controller.yaml" | |
- "go/controller/**" | |
permissions: | |
contents: read | |
env: | |
GOPATH: /home/runner/go/ | |
GOPROXY: "https://proxy.golang.org" | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
working-directory: go/controller | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: go/controller/go.mod | |
cache: true | |
- name: Download dependencies | |
run: go mod download | |
- run: PATH=$PATH:$GOPATH/bin make build | |
unit-test: | |
name: Unit tests | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
shell: bash | |
working-directory: go/controller | |
timeout-minutes: 5 | |
steps: | |
- name: Checkout | |
uses: actions/[email protected] | |
- name: Set up Go | |
uses: actions/[email protected] | |
with: | |
go-version-file: go/controller/go.mod | |
cache: true | |
- name: Test | |
run: PATH=$PATH:$GOPATH/bin make test | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0 | |
with: | |
go-version-file: go/controller/go.mod | |
check-latest: true | |
- uses: golangci/golangci-lint-action@3cfe3a4abbb849e10058ce4af15d205b6da42804 # v3.7.1 | |
with: | |
version: v1.61.0 | |
working-directory: go/controller | |
args: --timeout=30m |