Skip to content

Upgrade PrivateBin to 2.0.5 #193

Upgrade PrivateBin to 2.0.5

Upgrade PrivateBin to 2.0.5 #193

Workflow file for this run

---
name: Lint and Test Chart
on: pull_request
jobs:
lint-and-test:
name: Lint and Test ${{ matrix.kubernetesVersion }}
strategy:
fail-fast: false
matrix:
kubernetesVersion: [
"v1.32.8",
"v1.33.4",
"v1.34.0"
]
runs-on: ubuntu-latest
if: github.ref != 'refs/heads/master'
steps:
- name: Checkout
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v5
with:
version: v3.9.0
- name: Set up python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Set up chart-testing
uses: helm/chart-testing-action@v2.8.0
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
id: lint
run: ct lint --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml
- name: Create kind cluster
uses: helm/kind-action@v1.14.0
with:
version: v0.30.0
node_image: "kindest/node:${{ matrix.kubernetesVersion }}"
config: .ci/kind-config.yaml
# Only build a kind cluster if there are chart changes to test.
if: steps.list-changed.outputs.changed == 'true'
- name: Verify kind
run: |
kubectl cluster-info
kubectl get nodes -o wide
kubectl get pods -n kube-system
# Only build a kind cluster if there are chart changes to test.
if: steps.list-changed.outputs.changed == 'true'
- name: Run chart-testing (install)
run: ct install --target-branch ${{ github.event.repository.default_branch }} --config .ci/ct.yaml
# Only install if there are chart changes to test.
if: steps.list-changed.outputs.changed == 'true'