forked from vmware-tanzu/community-edition
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 2.5 KB
/
e2e-vsphere-management-and-workload-cluster.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: E2E Test - vSphere Management and Workload Cluster
on:
workflow_dispatch:
repository_dispatch:
types: [daily-build]
jobs:
e2e-vsphere-management-cluster-test:
name: E2E vSphere Management and Workload Cluster Test
# Only run this job if we're in the main repo, not a fork.
if: github.repository == 'vmware-tanzu/community-edition'
runs-on: vsphere-e2e-runner
steps:
- name: Set up Go 1.x
uses: actions/setup-go@v3
with:
go-version: "1.17"
id: go
- name: Check out code
uses: actions/checkout@v1
- name: Get Date
id: get-date
shell: bash
run: |
echo "::set-output name=date::$(date -u "+%Y-%m")"
- name: Restore Go Cache
uses: actions/cache@v3
timeout-minutes: 10
continue-on-error: true
with:
path: ~/go/pkg/mod
key: ${{ runner.os }}-go-${{ steps.get-date.outputs.date }}-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Run vSphere Management and Workload Cluster E2E Test
env:
DAILY_BUILD: ${{ github.event.client_payload.daily-build }}
VSPHERE_MANAGEMENT_CLUSTER_ENDPOINT: ${{ secrets.VSPHERE_MANAGEMENT_CLUSTER_ENDPOINT }}
VSPHERE_WORKLOAD_CLUSTER_ENDPOINT: ${{ secrets.VSPHERE_WORKLOAD_CLUSTER_ENDPOINT }}
VSPHERE_SERVER: ${{ secrets.VSPHERE_SERVER }}
VSPHERE_SSH_AUTHORIZED_KEY: ${{ secrets.VSPHERE_SSH_AUTHORIZED_KEY }}
VSPHERE_USERNAME: ${{ secrets.VSPHERE_USERNAME }}
VSPHERE_PASSWORD: ${{ secrets.VSPHERE_PASSWORD }}
VSPHERE_DATACENTER: ${{ secrets.VSPHERE_DATACENTER }}
VSPHERE_DATASTORE: ${{ secrets.VSPHERE_DATASTORE }}
VSPHERE_FOLDER: ${{ secrets.VSPHERE_FOLDER }}
VSPHERE_NETWORK: ${{ secrets.VSPHERE_NETWORK }}
VSPHERE_RESOURCE_POOL: ${{ secrets.VSPHERE_RESOURCE_POOL }}
run: |
# Workaround for issue https://github.com/kubernetes-sigs/kind/issues/2240
sudo sysctl net/netfilter/nf_conntrack_max=131072
make vsphere-management-and-workload-cluster-e2e-test
- name: Collect tanzu diagnostics data
uses: actions/upload-artifact@v3
if: ${{ always() }}
with:
name: diagnostics-data-${{ github.run_id }}-${{ github.run_attempt }}
path: |
bootstrap.*.diagnostics.tar.gz
management-cluster.*.diagnostics.tar.gz
workload-cluster.*.diagnostics.tar.gz