Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable github workflow to automate helm chart test #12162

Closed
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/druid-helm-lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Lint and Test Charts

on:
pull_request:
types: [opened, edited, reopened, synchronize]

jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@v2
with:
persist-credentials: false
submodules: recursive
fetch-depth: 0

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

- uses: actions/setup-python@v2
with:
python-version: 3.8

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

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --print-config)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
env:
CT_CHART_DIRS: helm/druid
CT_SINCE: HEAD

- name: Run chart-testing (lint)
run: ct lint --charts helm/druid --print-config
env:
CT_CHART_DIRS: helm/druid
CT_SINCE: HEAD
4 changes: 4 additions & 0 deletions helm/druid/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ apiVersion: v2
appVersion: 0.22.0
description: Apache Druid is a high performance real-time analytics database.
name: druid
maintainers:
isandeep41 marked this conversation as resolved.
Show resolved Hide resolved
- name: isandeep41
email: [email protected]
url: https://github.com/isandeep41
dependencies:
- name: zookeeper
version: 2.1.4
Expand Down