chore(deps): update all non-major dependencies #23575
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: Terratest | ||
| on: | ||
| push: | ||
| paths-ignore: | ||
| - '**.md' | ||
| - '**.svg' | ||
| - '**.drawio' | ||
| - '.spelling' | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| # The specific activity types are listed here to include "labeled" and "unlabeled" | ||
| # (which are not included by default for the "pull_request" trigger). | ||
| types: [opened, synchronize, reopened, ready_for_review, labeled, unlabeled] | ||
| paths-ignore: | ||
| - '**.md' | ||
| - '**.svg' | ||
| - '**.drawio' | ||
| - '.spelling' | ||
| permissions: | ||
| contents: read | ||
| env: | ||
| K3D_VERSION: v5.8.3 | ||
| jobs: | ||
| skip-check: | ||
| runs-on: ubuntu-latest | ||
| name: Skip the job? | ||
| outputs: | ||
| should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
| steps: | ||
| - name: Harden Runner | ||
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | ||
| with: | ||
| egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | ||
| - id: skip_check | ||
| uses: fkirc/skip-duplicate-actions@f75f66ce1886f00957d99748a42c724f4330bdcf # v5.3.1 | ||
| with: | ||
| skip_after_successful_duplicate: 'true' | ||
| do_not_skip: '["workflow_dispatch", "schedule"]' | ||
| terratest: | ||
| runs-on: ubuntu-24.04 | ||
| needs: skip-check | ||
| if: ${{ needs.skip-check.outputs.should_skip != 'true' }} && !contains( github.event.pull_request.labels.*.name, 'renovate') | ||
|
Check warning on line 48 in .github/workflows/terratest.yaml
|
||
| strategy: | ||
| matrix: | ||
| k8s-version: ${{ contains(github.event.pull_request.labels.*.name, 'heavy-tests') && fromJSON('["v1.32.11-k3s1","v1.33.7-k3s1","v1.34.3-k3s1"]') || fromJSON('["v1.34.3-k3s1"]') }} | ||
| steps: | ||
| - name: Checkout | ||
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | ||
| with: | ||
| fetch-depth: 0 | ||
| - name: Setup golang | ||
| uses: actions/setup-go@924ae3a1cded613372ab5595356fb5720e22ba16 # v6.5.0 | ||
| with: | ||
| go-version-file: ./go.mod | ||
| - name: Setup helm | ||
| uses: azure/setup-helm@9bc31f4ebc9c6b171d7bfbaa5d006ae7abdb4310 # v5.0.1 | ||
| with: | ||
| version: v4.2.3 | ||
| - name: Build artifacts | ||
| uses: goreleaser/goreleaser-action@f06c13b6b1a9625abc9e6e439d9c05a8f2190e94 # v7.2.3 | ||
| with: | ||
| version: v2.12.7 | ||
| args: release --clean --skip=publish,validate,sbom,sign --snapshot | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| - name: Create edgeDNS k3s Cluster | ||
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | ||
| with: | ||
| cluster-name: "edgedns" | ||
| # k3d-version: v5.7.4 | ||
| args: --verbose --image docker.io/rancher/k3s:${{ matrix.k8s-version }} -c k3d/edge-dns.yaml | ||
| k3d-version: ${{ env.K3D_VERSION }} | ||
| - name: Create 1st k3s Cluster | ||
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | ||
| with: | ||
| cluster-name: "test-gslb1" | ||
| # k3d-version: v5.7.4 | ||
| args: --verbose --image docker.io/rancher/k3s:${{ matrix.k8s-version }} -c k3d/test-gslb1.yaml | ||
| k3d-version: ${{ env.K3D_VERSION }} | ||
| - name: Create 2nd k3s Cluster | ||
| uses: AbsaOSS/k3d-action@4e8b3239042be1dc0aed6c5eb80c13b18200fc79 | ||
| with: | ||
| cluster-name: "test-gslb2" | ||
| # k3d-version: v5.7.4 | ||
| args: --verbose --image docker.io/rancher/k3s:${{ matrix.k8s-version }} -c k3d/test-gslb2.yaml | ||
| k3d-version: ${{ env.K3D_VERSION }} | ||
| - name: K8GB deployment | ||
| run: | | ||
| make deploy-test-version list-running-pods | ||
| echo "Cluster 1 (eu):" | ||
| kubectl get no -owide --context=k3d-test-gslb1 | ||
| echo "Cluster 2 (us):" | ||
| kubectl get no -owide --context=k3d-test-gslb2 | ||
| - name: Run Terratest | ||
| run: | | ||
| mkdir -p ${{ github.workspace }}/tmp/terratest | ||
| set -o pipefail | ||
| echo "::group::Terratest logs" | ||
| make terratest | tee ${{ github.workspace }}/tmp/terratest/all.log | ||
| echo "::endgroup::" | ||
| - name: Print debug info | ||
| if: always() | ||
| uses: ./.github/actions/print-terratest-debug | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 | ||
| if: always() | ||
| with: | ||
| name: terratest-logs-${{ matrix.k8s-version }} | ||
| path: ${{ github.workspace }}/tmp/terratest | ||