chore(deps): update actions/checkout action to v6 #627
This file contains hidden or 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: K8s OTEL E2E Test Suite (External Contribution) | |
| on: | |
| pull_request_target: | |
| paths: | |
| - 'charts/nr-k8s-otel-collector/**' | |
| - '.github/workflows/nr-k8s-otel-e2e.yml' | |
| - '.github/workflows/nr-k8s-otel-e2e-external.yml' | |
| permissions: | |
| contents: read | |
| env: | |
| # NOTICE that apart from this, the versions in the chart linter matrix needs to be bumped too. | |
| LATEST_K8S_VERSION: 'v1.34.0' | |
| MINIKUBE_VERSION: 'v1.37.0' | |
| jobs: | |
| e2e-test-external: | |
| name: Run Tests | |
| # Do not run e2e tests if PR has skip-e2e label or if it's a non-forked repo (internal contribution) | |
| if: ${{ !contains(github.event.pull_request.labels.*.name, 'ci/skip-e2e') && github.event.pull_request.head.repo.full_name != 'newrelic/helm-charts' }} | |
| runs-on: ubuntu-latest | |
| environment: E2E # Required so that approval is required to run this job since it is untrusted (forked). | |
| # If the environment is broken, this job could time out since the default timeout for tilt ci is 30m. | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Setup Minikube | |
| uses: manusa/actions-setup-minikube@v2.14.0 | |
| with: | |
| minikube version: ${{ env.MINIKUBE_VERSION }} | |
| kubernetes version: ${{ env.LATEST_K8S_VERSION }} | |
| # default driver doesn't support 'eval $$(minikube docker-env)'. | |
| driver: docker | |
| github token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Run e2e-test | |
| uses: newrelic/newrelic-integration-e2e-action@v1 | |
| with: | |
| retry_seconds: 90 | |
| retry_attempts: 10 | |
| agent_enabled: false | |
| spec_path: charts/nr-k8s-otel-collector/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 }} |