Update prometheus-federator to use dependencies from k8s 1.30+ #7
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 : Integration test | |
permissions: | |
contents : read | |
on: | |
workflow_call: | |
push: | |
branches: | |
- main | |
- release/v[0-9]+.(0|x) | |
- release/v[0-9]+.[0-9]+.[0-9]+ | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '*.md' | |
- '.gitignore' | |
- 'CODEOWNERS' | |
- 'LICENSE' | |
jobs: | |
test: | |
strategy: | |
matrix: | |
arch: | |
- x64 | |
- arm64 | |
K3S_VERSION : | |
- v1.28.9-k3s1 | |
- v1.31.4-k3s1 | |
name : integration-test | |
runs-on : runs-on,image=ubuntu22-full-${{ matrix.arch }},runner=4cpu-linux-${{ matrix.arch }},run-id=${{ github.run_id }} | |
steps: | |
- name : Checkout repository | |
uses : actions/checkout@v4 | |
- name: Install go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23 | |
- name : Install helm | |
uses: azure/setup-helm@v3 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name : Install k3d | |
run : ./.github/workflows/e2e/scripts/install-k3d.sh | |
- name : Setup test environment | |
run : | | |
CLUSTER_NAME=test-cluster K3S_VERSION=${{ matrix.K3S_VERSION }} ./.github/workflows/e2e/scripts/setup-cluster.sh | |
k3d kubeconfig get test-cluster > kubeconfig.yaml | |
- name : Debug kubeconfig | |
run : cat kubeconfig.yaml | |
- name : Build helm-project-operator | |
run : BUILD_TARGET=helm-project-operator ./scripts/build | |
- name : Validate build | |
run : ./scripts/validate-ci | |
- name : Package helm-project-operator | |
run : BUILD_TARGET=helm-project-operator ./scripts/package | |
- name : Run e2e tests | |
run : | | |
./scripts/integration | |
env: | |
KUBECONFIG: ${{ github.workspace }}/kubeconfig.yaml |