forked from sustainable-computing-io/kepler
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (42 loc) · 1.38 KB
/
integration_test.yml
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: Integration test
on:
pull_request:
jobs:
integration_test:
runs-on: ubuntu-20.04
strategy:
matrix:
kube_provider: [kind]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-go@v3
with:
go-version: 1.18
- name: use kepler action for kind cluster build
uses: sustainable-computing-io/[email protected]
with:
runningBranch: kind
- name: simple test - deploy kepler
run: make cluster-sync
env:
CLUSTER_PROVIDER: ${{matrix.kube_provider}}
IMAGE_REPO: "localhost:5001"
IMAGE_TAG: "devel"
CTR_CMD: docker
CI_ONLY: "true"
- name: test if kepler is still alive
run: |
sleep 60
kubectl logs $(kubectl -n kepler get pods -oname) -n kepler
kubectl get all -n kepler
- name: run integration_test
run: |
docker ps -a
mkdir -p /tmp/.kube
kind get kubeconfig --name=kind > /tmp/.kube/config
kubectl port-forward --address localhost $(kubectl -n kepler get pods -oname) 9102:9102 -n kepler -v7 &
kubectl logs -n kepler daemonset/kepler-exporter
kubectl get pods -n kepler -o yaml
go test ./e2e/... -v --race --bench=. -cover --count=1 --vet=all
env:
kepler_address: localhost:9102