Skip to content

Commit

Permalink
🚧 feat(helm): Test CI action
Browse files Browse the repository at this point in the history
  • Loading branch information
MfCrizz committed Aug 17, 2023
1 parent 10373d5 commit 36f2910
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/helmlint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint and Test Charts

on: pull_request

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Helm
uses: azure/setup-helm@v3
with:
version: v3.12.1

- uses: actions/setup-python@v4
with:
python-version: '3.9'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs chart --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --chart-dirs chart --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --chart-dirs chart --target-branch ${{ github.event.repository.default_branch }}
2 changes: 2 additions & 0 deletions chart/templates/frontend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,3 +89,5 @@ spec:
value: {{ quote .Values.frontend.deployment.container.env.JAEGER_SAMPLER_PARAM }}
- name: JAEGER_DISABLED
value: {{ quote .Values.frontend.deployment.container.env.JAEGER_DISABLED }}
- name: TEST
value: {{ quote .Values.frontend.deployment.container.env.JAEGER_DISABLED }}

0 comments on commit 36f2910

Please sign in to comment.