Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 15 additions & 15 deletions .github/workflows/e2e_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,18 @@ name: Operator E2e tests
on:
pull_request:
branches:
- '*'
- "*"
paths:
- '**.go'
- '.github/workflows/e2e_test.yml'
- "**.go"
- ".github/workflows/e2e_test.yml"
env:
GOPRIVATE: github.com/streamnative
jobs:
e2e-test:
name: E2e tests for Operators
strategy:
matrix:
alwaysUpdatePulsar: [ "true", "false" ]
alwaysUpdatePulsar: ["true", "false"]
runs-on: ubuntu-latest
env:
ALWAYS_UPDATE_PULSAR_RESOURCE: ${{ matrix.alwaysUpdatePulsar }}
Expand All @@ -55,10 +55,10 @@ jobs:
- name: Cleanup disk
run: sudo rm -rf /usr/local/.ghcup

- name: Set up Go 1.23
- name: Set up Go 1.24
uses: actions/setup-go@v3
with:
go-version: '1.23'
go-version: "1.24"
id: go

- name: Set up Git token
Expand Down Expand Up @@ -89,6 +89,15 @@ jobs:
kind load docker-image --name pulsar-dev docker.cloudsmith.io/streamnative/operators/kubebuilder/kube-rbac-proxy:v0.8.0
df -h

- name: Build and Setup Pulsar Resources Operator
run: |
make docker-build
kind load docker-image --name pulsar-dev controller:latest
make deploy
kubectl get crds
kubectl wait --for condition=available --timeout=360s deployment/pulsar-resources-operator-controller-manager -npulsar-resources-operator-system
df -h

- name: Install Pulsar Operators and sn-platform
run: |
helm repo add streamnative https://charts.streamnative.io
Expand All @@ -106,15 +115,6 @@ jobs:
helm install test --set initialize=true --values ../.ci/clusters/values.yaml charts/pulsar
df -h

- name: Build and Setup Pulsar Resources Operator
run: |
make docker-build
kind load docker-image --name pulsar-dev controller:latest
make deploy
kubectl get crds
kubectl wait --for condition=available --timeout=360s deployment/pulsar-resources-operator-controller-manager -npulsar-resources-operator-system
df -h

- name: Run Operator Test
run: |
cd tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:

- uses: actions/setup-go@v3
with:
go-version: 1.23
go-version: 1.24

- uses: actions/checkout@v3
- name: golangci-lint
Expand Down Expand Up @@ -72,4 +72,4 @@ jobs:
uses: mxschmitt/action-tmate@v3
timeout-minutes: 15
if: failure()
# You can use golangci-lint run --fix to see how to fix the error
# You can use golangci-lint run --fix to see how to fix the error
4 changes: 2 additions & 2 deletions .github/workflows/release-operator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
default_channel: ${{ steps.redhat.outputs.default_channel }}

steps:
- name: Set up Go 1.23
- name: Set up Go 1.24
uses: actions/setup-go@v3
with:
go-version: "1.23"
go-version: "1.24"
id: go

- name: Set up Git token
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@
# limitations under the License.

name: Precommit Style Check
on:
on:
push:
branches:
- master
- main
- develop
- master
- main
- develop
pull_request:
branches:
- '*'
- "*"
env:
GOPRIVATE: github.com/streamnative
jobs:
Expand All @@ -32,20 +32,20 @@ jobs:
ACCESS_TOKEN: ${{ secrets.SNBOT_GITHUB_TOKEN }}
GOPRIVATE: github.com/streamnative
steps:
- name: Set up Go 1.23
uses: actions/setup-go@v3
with:
go-version: '1.23'
id: go
- name: Set up Go 1.24
uses: actions/setup-go@v3
with:
go-version: "1.24"
id: go

- name: Set up git token
run: |
git config --global url."https://${ACCESS_TOKEN}:@github.com/".insteadOf "https://github.com/"
- name: Set up git token
run: |
git config --global url."https://${ACCESS_TOKEN}:@github.com/".insteadOf "https://github.com/"

- name: Check out code into the Go module directory
uses: actions/checkout@v3
- name: Check out code into the Go module directory
uses: actions/checkout@v3

- name: Check style
run: |
./scripts/verify_gofmt.sh ./...
./scripts/verify_govet.sh ./...
- name: Check style
run: |
./scripts/verify_gofmt.sh ./...
./scripts/verify_govet.sh ./...
Loading