chore(deps): update renovatebot/github-action action to v46.1.8 #577
Workflow file for this run
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: CF Smoke Tests on KinD | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| inputs: | |
| minimal: | |
| description: 'Run minimal installation (skip optional components)' | |
| type: boolean | |
| required: false | |
| default: true | |
| schedule: | |
| - cron: '0 7 * * 1' | |
| jobs: | |
| kind-smoke: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| fetch-depth: 0 | |
| - name: Check if only ignored paths changed | |
| id: check_changes | |
| run: | | |
| if [ "${{ github.event_name }}" == "pull_request" ]; then | |
| CHANGED_FILES=$(git diff --name-only ${{ github.event.pull_request.base.sha }} ${{ github.sha }}) | |
| RELEVANT_FILES=$(echo "$CHANGED_FILES" | grep -v -E '.*\.Dockerfile|^releases/.*/files/|^\.github/|^docs/|\.md$|^renovate\.json$' || true) | |
| if [ -z "$RELEVANT_FILES" ]; then | |
| echo "Only ignored paths were changed. Skipping workflow." | |
| echo "skip=true" >> $GITHUB_OUTPUT | |
| else | |
| echo "skip=false" >> $GITHUB_OUTPUT | |
| fi | |
| else | |
| echo "skip=false" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Set kernel settings | |
| if: steps.check_changes.outputs.skip != 'true' | |
| run: | | |
| docker run --rm \ | |
| --privileged \ | |
| --pid host \ | |
| alpine sh -c "sysctl -w fs.inotify.max_user_instances=512" | |
| - name: Install dependencies | |
| if: steps.check_changes.outputs.skip != 'true' | |
| run: | | |
| mkdir -p $HOME/.local/bin && echo "$HOME/.local/bin" >> "$GITHUB_PATH" | |
| curl -L https://kind.sigs.k8s.io/dl/v${KIND_VERSION}/kind-linux-amd64 -o $HOME/.local/bin/kind | |
| chmod +x $HOME/.local/bin/kind | |
| curl -L https://github.com/helmfile/helmfile/releases/download/v${HELMFILE_VERSION}/helmfile_${HELMFILE_VERSION}_linux_amd64.tar.gz | tar -zx | |
| mv helmfile $HOME/.local/bin/helmfile | |
| curl -L "https://packages.cloudfoundry.org/stable?release=linux64-binary&version=${CF_CLI_VERSION}&source=github" | tar -zx | |
| mv cf8 $HOME/.local/bin/cf | |
| env: | |
| # renovate: dataSource=github-releases depName=cloudfoundry/cli | |
| CF_CLI_VERSION: "8.18.0" | |
| # renovate: dataSource=github-releases depName=kubernetes-sigs/kind | |
| KIND_VERSION: "0.31.0" | |
| # renovate: dataSource=github-releases depName=helmfile/helmfile | |
| HELMFILE_VERSION: "1.4.3" | |
| - name: Run make up (default) | |
| if: steps.check_changes.outputs.skip != 'true' && github.event_name == 'pull_request' | |
| run: make up | |
| - name: Run make up | |
| if: steps.check_changes.outputs.skip != 'true' && github.event_name != 'pull_request' | |
| run: make up | |
| env: | |
| INSTALL_OPTIONAL_COMPONENTS: ${{ inputs.minimal }} | |
| - name: Login | |
| if: steps.check_changes.outputs.skip != 'true' | |
| run: make login | |
| - name: Init | |
| if: steps.check_changes.outputs.skip != 'true' | |
| run: make bootstrap-complete | |
| - name: setup CF tests | |
| if: steps.check_changes.outputs.skip != 'true' | |
| uses: ./.github/actions/setup-cf-tests | |
| with: | |
| test-repo: cf-smoke-tests | |
| test-branch: main | |
| config-template: ./.github/smoke-config.tpl | |
| config-output: ./.github/smoke-config.json | |
| - name: run smoke test | |
| if: steps.check_changes.outputs.skip != 'true' | |
| env: | |
| CONFIG: "${{ github.workspace }}/.github/smoke-config.json" | |
| GINKGO_NO_COLOR: "true" | |
| run: | | |
| ./cf-smoke-tests/bin/test --no-color --github-output --timeout=30m --procs=4 --json-report report.json | |
| - name: debug events | |
| if: failure() | |
| run: kubectl get events -A --sort-by='.lastTimestamp' | |
| - name: debug pods | |
| if: failure() | |
| run: | | |
| echo "===== CLOUD_CONTROLLER =====" | |
| kubectl get pod -l app.kubernetes.io/name=cloud-controller -o wide | |
| kubectl get pod -l app.kubernetes.io/name=cloud-controller -o jsonpath='{.status.containerStatuses[*].state}' | jq | |
| kubectl logs -l app.kubernetes.io/name=cloud-controller --all-containers=true | |
| echo "===== CC_WORKER =====" | |
| kubectl get pod -l app.kubernetes.io/name=cc-worker -o wide | |
| kubectl logs -l app.kubernetes.io/name=cc-worker | |
| echo "===== CC_UPLOADER =====" | |
| kubectl get pod -l app=cc-uploader -o wide | |
| kubectl logs -l app=cc-uploader | |
| echo "===== CC_DEPLOYMENT_UPDATER =====" | |
| kubectl get pod -l app.kubernetes.io/name=cc-deployment-updater -o wide | |
| kubectl logs -l app.kubernetes.io/name=cc-deployment-updater | |
| echo "===== CC_WORKER_CLOCK =====" | |
| kubectl get pod -l app.kubernetes.io/name=cc-worker-clock -o wide | |
| kubectl logs -l app.kubernetes.io/name=cc-worker-clock | |
| - uses: actions/upload-artifact@v7 | |
| if: always() | |
| with: | |
| name: report.json | |
| path: ./cf-smoke-tests/report.json |