Skip to content

Support token exchange for bedrock #4136

Support token exchange for bedrock

Support token exchange for bedrock #4136

name: CI / Controller
on:
push:
branches:
- "master"
paths:
- ".github/workflows/controller-ci.yaml"
- "go/controller/**"
- "go/polly/**"
- "go/client/**"
pull_request:
branches:
- "**"
paths:
- ".github/workflows/controller-ci.yaml"
- "go/controller/**"
- "go/polly/**"
- "go/client/**"
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@v6
- uses: actions/setup-go@v6
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-latest
defaults:
run:
shell: bash
working-directory: go/controller
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Go
uses: actions/setup-go@v6
with:
go-version-file: go/controller/go.mod
cache: true
- name: Test
run: PATH=$PATH:$GOPATH/bin make test
check-docs:
name: verify controller docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Check docs
run: make codegen-crd-docs
working-directory: go/controller
- name: verify controller docs
working-directory: go/controller
run: |
git diff --exit-code -- docs/api.md || {
echo "::error docs were not generated. Please run 'make codegen-crd-docs' and commit the changes."
exit 1
}