mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-08-23 22:26:49 +00:00
Bumps the github-actions group with 4 updates in the / directory: [actions/checkout](https://github.com/actions/checkout), [ossf/scorecard-action](https://github.com/ossf/scorecard-action), [github/codeql-action/upload-sarif](https://github.com/github/codeql-action) and [actions/stale](https://github.com/actions/stale). Updates `actions/checkout` from 7.0.0 to 7.0.1 - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0...3d3c42e5aac5ba805825da76410c181273ba90b1) Updates `ossf/scorecard-action` from 2.4.3 to 2.4.4 - [Release notes](https://github.com/ossf/scorecard-action/releases) - [Changelog](https://github.com/ossf/scorecard-action/blob/main/RELEASE.md) - [Commits](https://github.com/ossf/scorecard-action/compare/4eaacf0543bb3f2c246792bd56e8cdeffafb205a...2d1146689b8cda280b9bc96326124645441f03bc) Updates `github/codeql-action/upload-sarif` from 4.37.1 to 4.37.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](https://github.com/github/codeql-action/compare/7188fc363630916deb702c7fdcf4e481b751f97a...f205ea1c3313d32999d8d6a48b4f6530d4437b38) Updates `actions/stale` from 10.4.0 to 11.0.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/stale/compare/1e223db275d687790206a7acac4d1a11bd6fe629...4391f3da665fdf50b6810c1a66712fb9ba21aa93) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: 7.0.1 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: ossf/scorecard-action dependency-version: 2.4.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: github/codeql-action/upload-sarif dependency-version: 4.37.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/stale dependency-version: 11.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
135 lines
5.0 KiB
YAML
135 lines
5.0 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.26'
|
|
GO_REQUIRED_MIN_VERSION: ''
|
|
USE_EXISTING_CLUSTER: false # set to true to use an existing kind cluster for debugging with act
|
|
KUBERNETES_VERSION: 'v1.29.2'
|
|
|
|
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Free disk space
|
|
run: bash .github/scripts/free-disk-space.sh
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
if: ${{ env.USE_EXISTING_CLUSTER != 'true' }}
|
|
run: kind create cluster --image kindest/node:${{ env.KUBERNETES_VERSION }} --wait 300s
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER == 'true' }}
|
|
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Free disk space
|
|
run: bash .github/scripts/free-disk-space.sh
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
if: ${{ env.USE_EXISTING_CLUSTER != 'true' }}
|
|
run: kind create cluster --image kindest/node:${{ env.KUBERNETES_VERSION }} --wait 300s
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER == 'true' }}
|
|
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Free disk space
|
|
run: bash .github/scripts/free-disk-space.sh
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
if: ${{ env.USE_EXISTING_CLUSTER != 'true' }}
|
|
run: kind create cluster --image kindest/node:${{ env.KUBERNETES_VERSION }} --wait 300s
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER == 'true' }}
|
|
- name: Test E2E
|
|
run: |
|
|
IMAGE_TAG=e2e KLUSTERLET_DEPLOY_MODE=Singleton make test-e2e
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|
|
e2e-grpc:
|
|
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
|
- name: Free disk space
|
|
run: bash .github/scripts/free-disk-space.sh
|
|
- name: Setup Go
|
|
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
- name: Setup kind
|
|
if: ${{ env.USE_EXISTING_CLUSTER != 'true' }}
|
|
run: kind create cluster --image kindest/node:${{ env.KUBERNETES_VERSION }} --wait 300s
|
|
- name: Set KUBECONFIG
|
|
run: |
|
|
mkdir -p /home/runner/.kube
|
|
kind get kubeconfig > /home/runner/.kube/config
|
|
if: ${{ env.USE_EXISTING_CLUSTER == 'true' }}
|
|
- name: Test E2E
|
|
run: |
|
|
IMAGE_TAG=e2e REGISTRATION_DRIVER=grpc make test-e2e
|
|
env:
|
|
KUBECONFIG: /home/runner/.kube/config
|