e2e-feature-gated #34
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: e2e-feature-gated | |
on: | |
pull_request: | |
paths-ignore: | |
- '**/*.md' | |
push: | |
branches: | |
- 'release-*' | |
- 'master' | |
- 'main' | |
tags: | |
- 'v*' | |
paths-ignore: | |
- '**/*.md' | |
jobs: | |
e2e-tests: | |
name: E2E tests for feature gates | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Import environment variables from file | |
run: cat ".github/env" >> $GITHUB_ENV | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: '${{ env.golang-version }}' | |
check-latest: true | |
- name: Build images | |
run: | | |
export SHELL=/bin/bash | |
make build image | |
- name: Start kind cluster | |
uses: helm/[email protected] | |
with: | |
version: ${{ env.kind-version }} | |
node_image: ${{ env.kind-image }} | |
wait: 300s | |
config: ./test/e2e/kind-conf.yaml | |
cluster_name: e2e | |
- name: Wait for cluster to finish bootstraping | |
run: | | |
echo "Waiting for all nodes to be ready..." | |
kubectl wait --for=condition=Ready nodes --all --timeout=120s | |
kubectl get nodes | |
echo "Waiting for all pods to be ready..." | |
kubectl wait --for=condition=Ready pods --all --all-namespaces --timeout=300s | |
kubectl get pods -A | |
echo "Cluster information" | |
kubectl cluster-info | |
- name: Load images | |
run: | | |
kind load docker-image -n e2e quay.io/prometheus-operator/prometheus-operator:$(git rev-parse --short HEAD) | |
kind load docker-image -n e2e quay.io/prometheus-operator/prometheus-config-reloader:$(git rev-parse --short HEAD) | |
kind load docker-image -n e2e quay.io/prometheus-operator/admission-webhook:$(git rev-parse --short HEAD) | |
kubectl apply -f scripts/kind-rbac.yaml | |
- name: Run tests | |
run: > | |
EXCLUDE_ALERTMANAGER_TESTS=exclude | |
EXCLUDE_PROMETHEUS_TESTS=exclude | |
EXCLUDE_PROMETHEUS_ALL_NS_TESTS=exclude | |
EXCLUDE_THANOSRULER_TESTS=exclude | |
EXCLUDE_OPERATOR_UPGRADE_TESTS=exclude | |
EXCLUDE_PROMETHEUS_UPGRADE_TESTS=exclude | |
make test-e2e |