mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-02-14 10:00:11 +00:00
Some checks failed
Scorecard supply-chain security / Scorecard analysis (push) Failing after 1s
Post / images (amd64, addon-manager) (push) Failing after 1s
Post / images (amd64, placement) (push) Failing after 1s
Post / images (amd64, registration) (push) Failing after 1s
Post / images (amd64, registration-operator) (push) Failing after 1s
Post / images (amd64, work) (push) Failing after 1s
Post / images (arm64, addon-manager) (push) Failing after 1s
Post / images (arm64, placement) (push) Failing after 1s
Post / images (arm64, registration) (push) Failing after 1s
Post / images (arm64, registration-operator) (push) Failing after 1s
Post / images (arm64, work) (push) Failing after 1s
Post / image manifest (addon-manager) (push) Has been skipped
Post / image manifest (placement) (push) Has been skipped
Post / image manifest (registration) (push) Has been skipped
Post / image manifest (registration-operator) (push) Has been skipped
Post / image manifest (work) (push) Has been skipped
Post / trigger clusteradm e2e (push) Has been skipped
Post / coverage (push) Failing after 18m26s
Close stale issues and PRs / stale (push) Failing after 1s
🤖 Generated with [Claude Code](https://claude.com/claude-code) Signed-off-by: Qing Hao <qhao@redhat.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
140 lines
5.3 KiB
YAML
140 lines
5.3 KiB
YAML
name: E2E
|
|
|
|
on:
|
|
workflow_dispatch: {}
|
|
pull_request:
|
|
paths-ignore:
|
|
- 'solutions/**'
|
|
- 'assets/**'
|
|
- 'troubleshooting/**'
|
|
- ".github/ISSUE_TEMPLATE/*"
|
|
- 'README.md'
|
|
- '*.md'
|
|
branches:
|
|
- main
|
|
- release-*
|
|
|
|
env:
|
|
GO_VERSION: '1.25'
|
|
GO_REQUIRED_MIN_VERSION: ''
|
|
USE_EXISTING_CLUSTER: false # set to true to use an existing kind cluster for debugging with act
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
e2e:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: add permisson to docker.sock
|
|
run: sudo chown runner:docker /var/run/docker.sock
|
|
if: ${{ env.ACT }} # this step only runs locally when using the https://github.com/nektos/act to debug the e2e
|
|
- name: Checkout
|
|
uses: actions/checkout@v6.0.1
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
uses: engineerd/setup-kind@v0.6.2
|
|
with:
|
|
version: v0.22.0
|
|
skipClusterCreation: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: install imagebuilder
|
|
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.3
|
|
- name: Build images
|
|
run: IMAGE_TAG=e2e make images
|
|
- name: Load images
|
|
run: |
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration-operator:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/work:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/placement:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/addon-manager:e2e
|
|
- name: Test E2E
|
|
run: |
|
|
IMAGE_TAG=e2e make test-e2e
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|
|
e2e-hosted:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: add permisson to docker.sock
|
|
run: sudo chown runner:docker /var/run/docker.sock
|
|
if: ${{ env.ACT }} # this step only runs locally when using the https://github.com/nektos/act to debug the e2e
|
|
- name: Checkout
|
|
uses: actions/checkout@v6.0.1
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
uses: engineerd/setup-kind@v0.6.2
|
|
with:
|
|
version: v0.22.0
|
|
skipClusterCreation: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: install imagebuilder
|
|
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.3
|
|
- name: Build images
|
|
run: IMAGE_TAG=e2e make images
|
|
- name: Load images
|
|
run: |
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration-operator:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/work:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/placement:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/addon-manager:e2e
|
|
- name: Test E2E
|
|
run: |
|
|
IMAGE_TAG=e2e KLUSTERLET_DEPLOY_MODE=SingletonHosted make test-e2e
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|
|
e2e-singleton:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: add permisson to docker.sock
|
|
run: sudo chown runner:docker /var/run/docker.sock
|
|
if: ${{ env.ACT }} # this step only runs locally when using the https://github.com/nektos/act to debug the e2e
|
|
- name: Checkout
|
|
uses: actions/checkout@v6.0.1
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v6
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
uses: engineerd/setup-kind@v0.6.2
|
|
with:
|
|
version: v0.22.0
|
|
skipClusterCreation: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER }}
|
|
- name: install imagebuilder
|
|
run: go install github.com/openshift/imagebuilder/cmd/imagebuilder@v1.2.3
|
|
- name: Build images
|
|
run: IMAGE_TAG=e2e make images
|
|
- name: Load images
|
|
run: |
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration-operator:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/registration:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/work:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/placement:e2e
|
|
kind load docker-image --name=kind quay.io/open-cluster-management/addon-manager:e2e
|
|
- name: Test E2E
|
|
run: |
|
|
IMAGE_TAG=e2e KLUSTERLET_DEPLOY_MODE=Singleton make test-e2e
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|