Skip to content

Apply suggestions from code review #1340

Apply suggestions from code review

Apply suggestions from code review #1340

Workflow file for this run

name: CI
on:
push:
branches:
- "*"
tags:
- "v*"
pull_request:
branches:
- "*"
jobs:
test:
runs-on: ubuntu-latest
steps:
# Adapted from https://github.com/d3adb5/helm-unittest-action/
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Install Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
- name: Install helm-unittest
run: helm plugin install https://github.com/helm-unittest/helm-unittest
- name: Set chart directories to test as environment variable
run: |
echo "CHARTS_TO_TEST=$(find . -type f -name 'Chart.yaml' -exec dirname {} \; | tr '\n' ' ')" >> $GITHUB_ENV
- name: Run unit tests
run: helm unittest --color ${{ env.CHARTS_TO_TEST }}
verify:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Check that the contents of common-values.yaml are included in values.yaml
run: |
make check-common-values
- name: Run shellcheck in the shell scripts
run: |
make shellcheck