|
|
|
@ -13,19 +13,12 @@ jobs: |
|
|
|
|
docs: |
|
|
|
|
name: docs |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
go: ['1.23'] |
|
|
|
|
steps: |
|
|
|
|
- name: Install make |
|
|
|
|
run: sudo apt-get install make |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Go 1.x |
|
|
|
|
uses: actions/setup-go@v5 |
|
|
|
|
with: |
|
|
|
|
go-version: ${{ matrix.go }} |
|
|
|
|
id: go |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
go-version-file: ./operator/go.mod |
|
|
|
|
- name: Check generated docs |
|
|
|
|
working-directory: ./operator |
|
|
|
|
run: | |
|
|
|
@ -35,19 +28,12 @@ jobs: |
|
|
|
|
lint: |
|
|
|
|
name: lint |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
go: ['1.23'] |
|
|
|
|
steps: |
|
|
|
|
- name: Install make |
|
|
|
|
run: sudo apt-get install make |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Go 1.x |
|
|
|
|
uses: actions/setup-go@v5 |
|
|
|
|
with: |
|
|
|
|
go-version: ${{ matrix.go }} |
|
|
|
|
id: go |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
go-version-file: ./operator/go.mod |
|
|
|
|
- name: Lint |
|
|
|
|
uses: golangci/golangci-lint-action@v6 |
|
|
|
|
with: |
|
|
|
@ -61,19 +47,13 @@ jobs: |
|
|
|
|
build-manager: |
|
|
|
|
name: Build Manager |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
go: ['1.23'] |
|
|
|
|
steps: |
|
|
|
|
- name: Install make |
|
|
|
|
run: sudo apt-get install make |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Go 1.x |
|
|
|
|
uses: actions/setup-go@v5 |
|
|
|
|
with: |
|
|
|
|
go-version: ${{ matrix.go }} |
|
|
|
|
go-version-file: ./operator/go.mod |
|
|
|
|
id: go |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Build Manager |
|
|
|
|
working-directory: ./operator |
|
|
|
|
run: |- |
|
|
|
@ -82,19 +62,12 @@ jobs: |
|
|
|
|
build-broker: |
|
|
|
|
name: Build Broker |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
go: ['1.23'] |
|
|
|
|
steps: |
|
|
|
|
- name: Install make |
|
|
|
|
run: sudo apt-get install make |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Go 1.x |
|
|
|
|
uses: actions/setup-go@v5 |
|
|
|
|
with: |
|
|
|
|
go-version: ${{ matrix.go }} |
|
|
|
|
id: go |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
go-version-file: ./operator/go.mod |
|
|
|
|
- name: Build Broker |
|
|
|
|
working-directory: ./operator |
|
|
|
|
run: |- |
|
|
|
@ -103,19 +76,12 @@ jobs: |
|
|
|
|
test: |
|
|
|
|
name: test |
|
|
|
|
runs-on: ubuntu-latest |
|
|
|
|
strategy: |
|
|
|
|
fail-fast: false |
|
|
|
|
matrix: |
|
|
|
|
go: ['1.23'] |
|
|
|
|
steps: |
|
|
|
|
- name: Install make |
|
|
|
|
run: sudo apt-get install make |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
- name: Set up Go 1.x |
|
|
|
|
uses: actions/setup-go@v5 |
|
|
|
|
with: |
|
|
|
|
go-version: ${{ matrix.go }} |
|
|
|
|
id: go |
|
|
|
|
- uses: actions/checkout@v4 |
|
|
|
|
go-version-file: ./operator/go.mod |
|
|
|
|
- name: Run tests |
|
|
|
|
working-directory: ./operator |
|
|
|
|
run: go test -coverprofile=profile.cov ./... |
|
|
|
@ -127,5 +93,5 @@ jobs: |
|
|
|
|
with: |
|
|
|
|
working-directory: ./operator |
|
|
|
|
path-to-profile: profile.cov |
|
|
|
|
flag-name: Go-${{ matrix.go }} |
|
|
|
|
flag-name: Go-1.23 |
|
|
|
|
shallow: true |
|
|
|
|