Skip to content

Commit

Permalink
Merge pull request #2 from CancerDataAggregator/chart-tester
Browse files Browse the repository at this point in the history
added tester
  • Loading branch information
smark88 authored Dec 14, 2020
2 parents 2808e11 + 096269a commit 19c6db9
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 23 deletions.
46 changes: 34 additions & 12 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -1,24 +1,46 @@
---
name: Helm Chart Lint

on:
pull_request:
branches:
- master
on: pull_request

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

- name: Fetch history
run: git fetch --prune --unshallow
- name: Set up Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-testing (Helm lint)
id: lint
uses: helm/chart-testing-action@v1.0.0-rc.1
- uses: actions/setup-python@v2
with:
command: lint
config: ct.yaml
python-version: 3.7

- name: Set up chart-testing
uses: helm/chart-testing-action@v2.0.1

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed)
if [[ -n "$changed" ]]; then
echo "::set-output name=changed::true"
fi
- name: Run chart-testing (lint)
run: ct lint

- name: Create kind cluster
uses: helm/kind-action@v1.0.0
if: steps.list-changed.outputs.changed == 'true'

- name: Test Kind Cluster
run: kubectl cluster-info

- name: Run chart-testing (install)
run: ct install --debug
2 changes: 1 addition & 1 deletion charts/cda/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.1
version: 0.1.2
appVersion: 0.0.4

keywords:
Expand Down
6 changes: 6 additions & 0 deletions charts/cda/ci/test-values.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
rbac:
# Specifies whether rbac policies should be created
create: false
serviceAccount:
# Specifies whether a service account should be created
create: false
2 changes: 1 addition & 1 deletion charts/cda/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@ spec:
- name: wget
image: busybox
command: ['wget']
args: ['{{ include "cda.fullname" . }}:{{ .Values.service.port }}']
args: ['{{ include "cda.fullname" . }}.{{.Release.Namespace}}:{{ .Values.service.port }}/status']
restartPolicy: Never
9 changes: 0 additions & 9 deletions ct.yaml

This file was deleted.

0 comments on commit 19c6db9

Please sign in to comment.