chore(deps): update dependency go to v1.23.5 #1003
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 over minikube | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
- renovate/** | |
jobs: | |
e2eTests: | |
name: Run E2E Tests | |
# Do not run e2e tests if PR has skip-e2e label | |
if: ${{ ! contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
# Latest patch version can be found in https://kubernetes.io/releases/patch-releases/ | |
# Some versions might not be available yet in https://storage.googleapis.com/kubernetes-release/release/v1.X.Y/bin/linux/amd64/kubelet | |
k8sVersion: ["v1.31.0", "v1.30.0", "v1.29.5", "v1.28.3", "v1.27.5"] | |
cri: [ containerd ] | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Setup Go | |
uses: actions/setup-go@3041bf56c941b39c61721a86cd11f3bb1338122a # v5.2.0 | |
with: | |
go-version-file: 'go.mod' | |
- name: Setup Minikube | |
uses: manusa/actions-setup-minikube@5d9440a1b535e8b4f541eaac559681a9022df29d # v2.13.1 | |
with: | |
minikube version: v1.35.0 | |
kubernetes version: ${{ matrix.k8sVersion }} | |
driver: docker | |
start args: "--container-runtime=${{ matrix.cri }}" | |
- name: Build and load Images | |
run: | | |
docker buildx build --load . --tag e2e/nri-kube-events:e2e | |
minikube image load e2e/nri-kube-events:e2e | |
- name: Setup Helm | |
# First command avoids getting following warning: | |
# "WARNING: Kubernetes configuration file is group-readable. This is insecure. Location: /home/runner/.kube/config" | |
run: | | |
chmod go-r /home/runner/.kube/config | |
helm repo add nri-kube-events https://newrelic.github.io/nri-kube-events | |
helm repo update | |
- name: Select metrics exception file | |
id: exceptions-version | |
run: | | |
MINOR=$(echo "${{ matrix.k8sVersion }}" | sed -n 's/v\([0-9]\)\.\([0-9][0-9]*\)\.[0-9].*/\1_\2/p') | |
echo $MINOR | |
echo "exceptions=$MINOR" >> $GITHUB_OUTPUT | |
- name: Run E2E tests | |
uses: newrelic/newrelic-integration-e2e-action@fd53fc95e287dcd7b5bd86a4a25d653aadf407d0 # v1.11.1 | |
env: | |
EXCEPTIONS_SOURCE_FILE: ${{ steps.exceptions-version.outputs.exceptions }}-exceptions.yml | |
with: | |
retry_seconds: 60 | |
retry_attempts: 5 | |
agent_enabled: false | |
spec_path: e2e/test-specs.yml | |
account_id: ${{ secrets.K8S_AGENTS_E2E_ACCOUNT_ID }} | |
api_key: ${{ secrets.K8S_AGENTS_E2E_API_KEY }} | |
license_key: ${{ secrets.K8S_AGENTS_E2E_LICENSE_KEY }} |