Skip to content

feat(cosmos-operator-rpc-node): port local git chart changes #32

feat(cosmos-operator-rpc-node): port local git chart changes

feat(cosmos-operator-rpc-node): port local git chart changes #32

Workflow file for this run

name: Test Charts
on:
pull_request:
branches: [main]
jobs:
discover-charts:
runs-on: ubuntu-latest
outputs:
chart_dirs: ${{ steps.set-chart-dirs.outputs.chart_dirs }}
steps:
- uses: actions/checkout@v3
- id: set-chart-dirs
run: |
CHART_DIRS=$(find ./charts -name Chart.yaml -exec dirname {} \; | jq -R -s -c 'split("\n")[:-1]')
echo "chart_dirs=$CHART_DIRS" >> $GITHUB_OUTPUT
test-charts:
needs: discover-charts
runs-on: ubuntu-latest
strategy:
matrix:
chart_dir: ${{ fromJson(needs.discover-charts.outputs.chart_dirs) }}
steps:
- uses: actions/checkout@v3
- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.10.0
- name: Install chart dependencies
run: |
if [ -f ${{ matrix.chart_dir }}/Chart.yaml ]; then
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add zalando https://opensource.zalando.com/postgres-operator/charts/postgres-operator
helm repo update
helm dependency update ${{ matrix.chart_dir }}
helm dependency build ${{ matrix.chart_dir }}
fi
- name: Run Helm lint
run: helm lint ${{ matrix.chart_dir }} -f ${{ matrix.chart_dir }}/values.yaml
- name: Run Helm template
run: helm template ${{ matrix.chart_dir }} -f ${{ matrix.chart_dir }}/values.yaml