52 lines
1.3 KiB
YAML
52 lines
1.3 KiB
YAML
name: Helm Lint
|
|
on:
|
|
workflow_call:
|
|
|
|
jobs:
|
|
lint:
|
|
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.10.0
|
|
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: '3.9'
|
|
check-latest: true
|
|
|
|
- name: Set up chart-testing
|
|
uses: scrungus/chart-testing-action@v3.7.3
|
|
|
|
- name: Dummy cloud creds
|
|
uses: DamianReeves/write-file-action@master
|
|
with:
|
|
path: clouds.yml
|
|
write-mode: overwrite
|
|
contents: |
|
|
clouds:
|
|
openstack:
|
|
auth:
|
|
auth_url: https://my.cloud:5000
|
|
application_credential_id: "xxxx"
|
|
application_credential_secret: "xxxx"
|
|
region_name: "RegionOne"
|
|
verify: false
|
|
interface: "public"
|
|
identity_api_version: 3
|
|
auth_type: "v3applicationcredential"
|
|
|
|
- name: Run chart-testing (lint)
|
|
run: |-
|
|
ct lint \
|
|
--target-branch ${{ github.event.repository.default_branch }} \
|
|
--all \
|
|
--validate-maintainers=false \
|
|
--extra-values clouds.yml
|