Skip to content

Merge pull request #21 from mshade/renovate/actions-setup-python-5.x #53

Merge pull request #21 from mshade/renovate/actions-setup-python-5.x

Merge pull request #21 from mshade/renovate/actions-setup-python-5.x #53

name: Lint, Test, Release Chart
on:
push:
branches:
- "*"
jobs:
lint-test:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Helm
uses: azure/setup-helm@v4
with:
version: v3.12.0
- uses: actions/setup-python@v5
with:
python-version: '3.9'
check-latest: true
- name: Set up chart-testing
uses: helm/[email protected]
- name: Run chart-testing (lint)
run: ct lint --chart-dirs openobserve --charts openobserve --target-branch ${{ github.event.repository.default_branch }}
- name: Create kind cluster
uses: helm/[email protected]
- name: Run chart-testing (install)
run: |
ct install --chart-dirs openobserve \
--charts openobserve \
--helm-extra-args '--timeout 60s' \
--target-branch ${{ github.event.repository.default_branch }}
release:
if: github.ref == 'refs/heads/main'
needs: lint-test
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v4
- name: Generate Chart Readme
run: ./gen-readme.sh
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: .
env:
CR_SKIP_EXISTING: "true"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: "true"