2025-01-11 13:01:47 +00:00
|
|
|
name: Helm
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths: [ "templates/prometheus-postgres-exporter/*.yaml" ]
|
|
|
|
types: [ "opened", "reopened", "synchronize" ]
|
|
|
|
push:
|
|
|
|
# paths: [ "templates/prometheus-postgres-exporter/*.yaml" ]
|
|
|
|
workflow_dispatch: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
helm-lint:
|
|
|
|
container:
|
|
|
|
image: docker.io/volkerraschek/helm:3.16.1
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install tooling
|
|
|
|
run: |
|
|
|
|
apk update
|
2025-01-11 13:15:16 +00:00
|
|
|
apk add git node
|
2025-01-11 13:01:47 +00:00
|
|
|
- uses: actions/checkout@v4.2.2
|
|
|
|
- name: Lint helm files
|
|
|
|
run: |
|
|
|
|
helm lint --values values.yaml .
|
|
|
|
|
|
|
|
helm-unittest:
|
|
|
|
container:
|
|
|
|
image: docker.io/volkerraschek/helm:3.16.1
|
|
|
|
runs-on:
|
|
|
|
- ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Install tooling
|
|
|
|
run: |
|
|
|
|
apk update
|
|
|
|
apk add git
|
|
|
|
- uses: actions/checkout@v4.2.2
|
|
|
|
- name: Unittest
|
|
|
|
run: |
|
|
|
|
helm unittest --strict --file 'unittests/**/*.yaml' ./
|