Auto-detect graylog leader and remove kubectl download #118
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint and Test Charts | |
on: pull_request | |
jobs: | |
lint-test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Fetch history | |
run: git fetch --prune --unshallow | |
- name: Set up Helm | |
uses: azure/setup-helm@v1.1 | |
with: | |
version: v3.5.1 | |
- name: Add dependency chart repos | |
run: | | |
helm repo add bitnami https://charts.bitnami.com/bitnami | |
helm repo add stable https://charts.helm.sh/stable | |
helm repo add kongz https://charts.kong-z.com | |
helm repo add opensearch https://opensearch-project.github.io/helm-charts/ | |
- uses: actions/setup-python@v2.2.2 | |
with: | |
python-version: 3.7 | |
- name: Set up chart-testing | |
uses: helm/chart-testing-action@v2.1.0 | |
- name: Run chart-testing (list-changed) | |
id: list-changed | |
run: | | |
changed=$(ct list-changed --target-branch main) | |
if [[ -n "$changed" ]]; then | |
echo "changed=true" >> "$GITHUB_OUTPUT" | |
fi | |
- name: Run chart-testing (lint) | |
run: ct lint --target-branch main | |
- name: Create kind cluster | |
uses: helm/kind-action@v1.2.0 | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Create kubernetes namespace | |
run: kubectl create namespace ct | |
if: steps.list-changed.outputs.changed == 'true' | |
- name: Run chart-testing (install) | |
run: ct install --target-branch main --namespace ct |