Skip to content

Commit

Permalink
Add helm chart test to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
willmostly committed Jul 1, 2024
1 parent 3bee5a1 commit e89714c
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,40 @@ jobs:
platforms: amd64,arm64,ppc64le
- name: Build and Test Docker Image
run: docker/build.sh
helm:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Set up Helm
uses: azure/[email protected]
with:
version: v3.14.4

- uses: actions/setup-python@v5
with:
python-version: '3.x'
check-latest: true

- name: Set up chart-testing
uses: helm/[email protected]

- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --chart-dirs helm/trino-gateway --target-branch ${{ github.event.repository.default_branch }})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --chart-dirs helm/trino-gateway --target-branch ${{ github.event.repository.default_branch }}

- name: Create kind cluster
if: steps.list-changed.outputs.changed == 'true'
uses: helm/[email protected]

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --chart-dirs helm/trino-gateway --target-branch ${{ github.event.repository.default_branch }}

0 comments on commit e89714c

Please sign in to comment.