-
Notifications
You must be signed in to change notification settings - Fork 8
48 lines (48 loc) · 1.67 KB
/
ci-e2e.yaml
File metadata and controls
48 lines (48 loc) · 1.67 KB
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
name: Run CI E2E
on:
pull_request_target:
types: [ labeled ]
branches:
- main
workflow_dispatch:
inputs:
from_branch:
description: 'Which branch to run from? (default: main)'
required: false
default: 'main'
jobs:
ci-e2e:
if: contains(github.event.pull_request.labels.*.name, 'safe to test') || github.event_name != 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: install go
uses: actions/setup-go@v2
with:
go-version: '^1.17'
- name: install sonobuoy
run: |
sudo curl -fsSL https://github.com/vmware-tanzu/sonobuoy/releases/download/v0.54.0/sonobuoy_0.54.0_linux_amd64.tar.gz -o sonobuoy_0.54.0_linux_amd64.tar.gz
sudo tar -xvf ./sonobuoy_0.54.0_linux_amd64.tar.gz
sudo chmod +x ./sonobuoy
sudo mv ./sonobuoy /usr/local/bin/sonobuoy
sudo rm ./sonobuoy_0.54.0_linux_amd64.tar.gz
- name: checkout perf-tests
uses: actions/checkout@v2
with:
repository: kubernetes/perf-tests
path: perf-tests
ref: master
- name: build clusterloader2 binary
run: |
go build -o cmd/clusterloader cmd/clusterloader.go
working-directory: perf-tests/clusterloader2
- name: run E2E
env:
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
GINKGO_FOCUS: "With the aks flavor"
run: scripts/ci-e2e.sh