-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (41 loc) · 1.29 KB
/
localtests.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
name: Test experiment charts using local charts
on:
workflow_dispatch:
# Kind versions used to test Iter8 on different versions of Kubernetes
# From: https://github.com/kubernetes-sigs/kind/releases
jobs:
http-experiment:
name: HTTP load test
runs-on: ubuntu-latest
steps:
- name: Cheåck out code
uses: actions/checkout@v3
- name: go
run: |
go version
which go
- name: Install Iter8
run: GOBIN=/usr/local/bin go install github.com/iter8-tools/[email protected]
- name: Start kind cluster ${{ matrix.version }}
uses: helm/[email protected]
with:
wait: 300s
- name: Create app
run: |
kubectl create deployment httpbin --image=kennethreitz/httpbin
kubectl expose deployment httpbin --type=ClusterIP --port=80
kubectl wait --for=condition=available --timeout=60s deploy/httpbin
- name: iter8 k launch
run: |
iter8 k launch \
--localChart \
--chartName charts/iter8 \
--set tasks={http} \
--set http.url="http://httpbin.default/get" \
--set runner=job
- name: Try other iter8 k commands
run: |
iter8 k assert -c completed -c nofailure --timeout 60s
iter8 k report
iter8 k log
iter8 k delete