mirror of
https://github.com/kubevela/kubevela.git
synced 2026-05-08 18:36:48 +00:00
* Feat: rollout controller is disabled by default Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: change rollout image pull policy Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: remove controller from the rollout addon in testdata Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Feat: rollout controller is disabled by default Signed-off-by: barnettZQG <barnett.zqg@gmail.com> * Fix: extended waiting time for the addon mock server Signed-off-by: barnettZQG <barnett.zqg@gmail.com>
109 lines
2.9 KiB
YAML
109 lines
2.9 KiB
YAML
name: E2E MultiCluster Test
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
workflow_dispatch: {}
|
|
pull_request:
|
|
branches:
|
|
- master
|
|
- release-*
|
|
|
|
env:
|
|
# Common versions
|
|
GO_VERSION: '1.17'
|
|
GOLANGCI_VERSION: 'v1.38'
|
|
KIND_VERSION: 'v0.7.0'
|
|
|
|
jobs:
|
|
|
|
detect-noop:
|
|
runs-on: ubuntu-20.04
|
|
outputs:
|
|
noop: ${{ steps.noop.outputs.should_skip }}
|
|
steps:
|
|
- name: Detect No-op Changes
|
|
id: noop
|
|
uses: fkirc/skip-duplicate-actions@v3.3.0
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]'
|
|
do_not_skip: '["workflow_dispatch", "schedule", "push"]'
|
|
concurrent_skipping: false
|
|
|
|
e2e-multi-cluster-tests:
|
|
runs-on: aliyun
|
|
needs: detect-noop
|
|
if: needs.detect-noop.outputs.noop != 'true'
|
|
|
|
steps:
|
|
- name: Check out code into the Go module directory
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Go
|
|
uses: actions/setup-go@v2
|
|
with:
|
|
go-version: ${{ env.GO_VERSION }}
|
|
|
|
- name: Get dependencies
|
|
run: |
|
|
go get -v -t -d ./...
|
|
|
|
- name: Setup Kind
|
|
uses: engineerd/setup-kind@v0.5.0
|
|
with:
|
|
version: ${{ env.KIND_VERSION }}
|
|
skipClusterCreation: true
|
|
|
|
- name: Setup Kind Cluster (Worker)
|
|
run: |
|
|
kind delete cluster --name worker
|
|
kind create cluster --image kindest/node:v1.18.15@sha256:5c1b980c4d0e0e8e7eb9f36f7df525d079a96169c8a8f20d8bd108c0d0889cc4 --name worker
|
|
kubectl version
|
|
kubectl cluster-info
|
|
kind get kubeconfig --name worker --internal > /tmp/worker.kubeconfig
|
|
kind get kubeconfig --name worker > /tmp/worker.client.kubeconfig
|
|
|
|
- name: Setup Kind Cluster (Hub)
|
|
run: |
|
|
kind delete cluster
|
|
kind create cluster --image kindest/node:v1.18.15@sha256:5c1b980c4d0e0e8e7eb9f36f7df525d079a96169c8a8f20d8bd108c0d0889cc4
|
|
kubectl version
|
|
kubectl cluster-info
|
|
|
|
- name: Load Image to kind cluster (Hub)
|
|
run: make kind-load
|
|
|
|
- name: Cleanup for e2e tests
|
|
run: |
|
|
make e2e-cleanup
|
|
make vela-cli
|
|
make e2e-setup-core
|
|
make
|
|
make setup-runtime-e2e-cluster
|
|
|
|
- name: Run e2e multicluster tests
|
|
run: |
|
|
export PATH=$(pwd)/bin:$PATH
|
|
make e2e-multicluster-test
|
|
|
|
- name: Stop kubevela, get profile
|
|
run: make end-e2e-core
|
|
|
|
- name: Upload coverage report
|
|
uses: codecov/codecov-action@v1
|
|
with:
|
|
token: ${{ secrets.CODECOV_TOKEN }}
|
|
files: /tmp/e2e-profile.out
|
|
flags: e2e-multicluster-test
|
|
name: codecov-umbrella
|
|
|
|
- name: Clean e2e profile
|
|
run: rm /tmp/e2e-profile.out
|
|
|
|
- name: Cleanup image
|
|
if: ${{ always() }}
|
|
run: make image-cleanup
|