release 0.6.0 #4
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: E2E Test | |
on: | |
push: | |
branches: | |
- master | |
- release-* | |
tags: | |
- v* | |
workflow_dispatch: { } | |
pull_request: | |
branches: | |
- master | |
- release-* | |
env: | |
# Common versions | |
GO_VERSION: '1.20' | |
KIND_VERSION: 'v0.18.0' | |
KIND_IMAGE: 'kindest/node:v1.26.3' | |
KIND_CLUSTER_NAME: 'ci-testing' | |
jobs: | |
e2e-test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
submodules: true | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version: ${{ env.GO_VERSION }} | |
- name: Setup Kind Cluster | |
uses: helm/kind-action@0025e74a8c7512023d06dc019c617aa3cf561fde # v1.10.0 | |
with: | |
node_image: ${{ env.KIND_IMAGE }} | |
cluster_name: ${{ env.KIND_CLUSTER_NAME }} | |
config: ./test/kind-conf.yaml | |
version: ${{ env.KIND_VERSION }} | |
- name: Install dependencies | |
run: go mod download | |
- name: Setup KinD | |
run: | | |
go install sigs.k8s.io/[email protected] | |
kind delete cluster || true | |
kind create cluster | |
kubectl apply -f https://raw.githubusercontent.com/openkruise/rollouts/refs/heads/master/config/crd/bases/rollouts.kruise.io_rollouts.yaml | |
- name: Run E2E tests | |
run: go test -v ./tests/e2e/... |