Files
kustomize/.github/workflows/test-install-kustomize.yml
dependabot[bot] 5db144fd72 build(deps): bump actions/checkout from 7.0.0 to 7.0.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 7.0.0 to 7.0.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](9c091bb21b...3d3c42e5aa)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: 7.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-07-27 00:42:30 +00:00

51 lines
1.5 KiB
YAML

name: Test Install Kustomize
on:
push:
branches: [master]
paths:
- 'hack/install_kustomize.sh'
- 'hack/test-files/*-release.json'
pull_request:
branches: [master]
paths:
- 'hack/install_kustomize.sh'
- 'hack/test-files/*-release.json'
permissions:
contents: read
env:
expected_kustomize_version: v5.8.1
jobs:
test-install-kustomize:
name: Test install_kustomize.sh (${{ matrix.release-file }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
release-file:
- hack/test-files/minimized-release.json
- hack/test-files/unminimized-release.json
steps:
- name: Check out code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 #v7.0.1
- name: Run install script with mocked releases payload
shell: bash
run: |
set -euo pipefail
tmp_dir="$(mktemp -d)"
./hack/install_kustomize.sh "$tmp_dir"
actual_kustomize_version=$("$tmp_dir/kustomize" version)
echo "Kustomize version: ${actual_kustomize_version}"
[ "${actual_kustomize_version}" = "${expected_kustomize_version}" ] || (echo "Unexpected Kustomize version: Expected ${expected_kustomize_version}, got ${actual_kustomize_version}" && exit 1)
env:
expected_kustomize_version: ${{ env.expected_kustomize_version }}
releases_file: ${{ github.workspace }}/${{ matrix.release-file }}