Skip to content

Test version change

Test version change #2

name: Integration test
on:
pull_request:
branches:
- v1alpha1
env:
KIND_VERSION: "0.15.0"
GO111MODULE: "on"
OPERATOR_IMAGE: "quay.io/sustainable_computing_io/kepler-operator"
KUBECONFIG: /tmp/.kube/config
KIND_WORKER_NODES: 2
jobs:
e2e:
name: e2e
runs-on: ubuntu-latest
steps:
- name: Checkout source
uses: actions/checkout@v3
- name: Install Go
uses: actions/setup-go@main
with:
go-version-file: go.mod
cache: true
- name: Install all tools
run: make tools
- name: use kepler action for kind cluster build
uses: sustainable-computing-io/[email protected]
with:
cluster_provider: kind
runningBranch: kind
- name: Ensure cluster is able to run OLM bundles
run: make cluster-prereqs
- uses: ./.github/compute-version
id: version
- name: Run e2e tests
run: |
./tests/run-e2e.sh --ci
env:
VERSION: ${{ steps.version.outputs.version }}
e2e-success:
name: Successful e2e tests
needs: [e2e]
runs-on: ubuntu-latest
steps:
- name: Successful
run: echo "Previous steps were successful"
#TO-DO
# Add tests for e2e that checks if all the kepler metrics are present
# kubectl wait --for=condition=Ready pod --all -n kepler-operator-system --timeout 3m
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3