move out rollout e2e (#1205)

* move out rollout e2e

* fix go workflow
This commit is contained in:
Ryan Zhang
2021-03-17 19:13:24 -07:00
committed by GitHub
parent 5b2b27e6a4
commit 7e22c19383
2 changed files with 55 additions and 1 deletions

View File

@@ -123,6 +123,57 @@ jobs:
- name: Clean up testdata
run: make compatibility-testdata-cleanup
e2e-rollout-tests:
runs-on: aliyun
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
run: |
kind delete cluster
kind create cluster
- name: Load Image to kind cluster
run: make kind-load
- name: Run Make
run: make
- name: Run Make Manager
run: make manager
- name: Prepare for e2e tests
run: |
make e2e-cleanup
make e2e-setup
- name: Wait for e2e preparation ready
run: |
timeout 60 bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' localhost:38081/api/workloads)" != "200" ]]; do sleep 5; done' || false
- name: Run e2e rollout tests
run: make e2e-rollout-test
- name: Cleanup image
if: ${{ always() }}
run: make image-cleanup
e2e-tests:
runs-on: ubuntu-20.04
needs: detect-noop