Skip to content

chore(deps): bump the gomod group across 1 directory with 7 updates #368

chore(deps): bump the gomod group across 1 directory with 7 updates

chore(deps): bump the gomod group across 1 directory with 7 updates #368

Workflow file for this run

name: Helm Chart Tests
on:
pull_request:
types: [opened, synchronize, reopened]
permissions: {}
jobs:
test-chart:
permissions:
contents: read
runs-on: ubuntu-latest
env:
IMG: controller:latest
steps:
- name: Clone the code
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Check for chart changes
id: changes
uses: tj-actions/changed-files@v47
with:
files: |
dist/chart/**
- name: Setup Go
if: steps.changes.outputs.any_changed == 'true'
uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version-file: go.mod
- name: Install the latest version of kind
if: steps.changes.outputs.any_changed == 'true'
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/latest/kind-linux-$(go env GOARCH)
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
- name: Verify kind installation
if: steps.changes.outputs.any_changed == 'true'
run: kind version
- name: Create kind cluster
if: steps.changes.outputs.any_changed == 'true'
run: kind create cluster
- name: Prepare octopus-permissions-controller
if: steps.changes.outputs.any_changed == 'true'
run: |
go mod tidy
make docker-build
kind load docker-image $IMG
- name: Install Helm
if: steps.changes.outputs.any_changed == 'true'
run: make install-helm
- name: Lint Helm Chart
if: steps.changes.outputs.any_changed == 'true'
run: |
helm lint ./dist/chart
- name: Install cert-manager via Helm (wait for readiness)
if: steps.changes.outputs.any_changed == 'true'
run: |
helm repo add jetstack https://charts.jetstack.io
helm repo update
helm install cert-manager jetstack/cert-manager \
--namespace cert-manager \
--create-namespace \
--set crds.enabled=true \
--wait \
--timeout 300s
# TODO: Uncomment if Prometheus is enabled
# - name: Install Prometheus Operator CRDs
# run: |
# helm repo add prometheus-community https://prometheus-community.github.io/helm-charts
# helm repo update
# helm install prometheus-crds prometheus-community/prometheus-operator-crds
- name: Deploy manager via Helm
if: steps.changes.outputs.any_changed == 'true'
run: |
make helm-deploy
- name: Check Helm release status
if: steps.changes.outputs.any_changed == 'true'
run: |
make helm-status