Lint #847
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 | |
on: | |
pull_request: | |
types: | |
- opened | |
- synchronize | |
push: | |
branches: | |
- master | |
schedule: | |
- cron: "0 1 * * *" | |
workflow_dispatch: | |
jobs: | |
helm-lint: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Update stackstorm-ha chart dependencies | |
run: | | |
set -x | |
helm dependency update | |
- name: Helm lint | |
run: | | |
helm lint | |
- name: Cache community | |
id: cache-community | |
uses: actions/cache@v3 | |
with: | |
path: community | |
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }} | |
- name: Helm template | |
if: steps.cache-community.outputs.cache-hit != 'true' | |
shell: bash | |
run: | | |
helm template --output-dir community . | |
k8s-lint: | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 10 | |
needs: [helm-lint] | |
steps: | |
- name: Checkout source | |
uses: actions/checkout@v3 | |
- name: Install kubeconform-helm | |
run: | | |
helm plugin install https://github.com/jtyr/kubeconform-helm --version v0.1.17 | |
- name: Update stackstorm-ha chart dependencies | |
run: | | |
set -x | |
helm dependency update | |
- name: Cache community | |
id: cache-community | |
uses: actions/cache@v3 | |
with: | |
path: community | |
key: ${{ runner.os }}-community-${{ hashFiles('conf/**', 'templates/**', 'Chart.yaml', 'values.yaml') }} | |
- name: Kubernetes kubeconform-helm Lint | |
run: | | |
helm kubeconform . |