move to operator sdk v4 + refacto + add unitest #7
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: Helm CI | ||
on: | ||
push: | ||
branches: | ||
- "**" | ||
paths-ignore: | ||
- 'docs/**' | ||
tags: | ||
- "*" | ||
pull_request: | ||
paths-ignore: | ||
- 'docs/**' | ||
jobs: | ||
helm-lint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Helm on Runner | ||
uses: azure/setup-helm@v4.2.0 | ||
- name: Lint Chart | ||
run: helm lint . | ||
helm-unitest: | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Helm on Runner | ||
uses: azure/setup-helm@v4.2.0 | ||
- name: Lint Chart | ||
run: echo "TODO" | ||
release_helm: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Install Helm on Runner | ||
uses: azure/setup-helm@v4.2.0 | ||
- name: Configure Git | ||
run: | | ||
git config user.name "$GITHUB_ACTOR" | ||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | ||
- name: Run chart-releaser | ||
uses: helm/chart-releaser-action@v1.6.0 | ||
with: | ||
charts_dir: deploy/charts | ||
skip_existing: true | ||
env: | ||
CR_TOKEN: "${{ secrets.CR_TOKEN }}" |