2023-06-13 13:58:44 -07:00

61 lines
1.7 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 values
uses: DamianReeves/write-file-action@master
with:
path: values.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"
kubernetesVersion: 1.27.2
machineImageId: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
controlPlane:
machineFlavor: vm.ska.cpu.general.small
machineCount: 1
nodeGroups:
- machineCount: 2
machineFlavor: vm.ska.cpu.general.small
name: test-group1
- name: Run chart-testing (lint)
run: |-
ct lint \
--target-branch ${{ github.event.repository.default_branch }} \
--all \
--validate-maintainers=false \
--extra-values values.yml