Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhance PR Workflow with Integration Tests Using Kind Cluster #259

Merged
merged 1 commit into from
Jul 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Helm lint"
name: "Helm lint and tests"
on:
pull_request:
types: [ opened, synchronize, reopened ]
Expand All @@ -7,7 +7,7 @@ env:
REGISTRY: ghcr.io

jobs:
helm-lint:
helm-lint-test:
runs-on: [ default ]
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -38,7 +38,15 @@ jobs:
- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --config ct.yaml --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 integration tests
if: steps.list-changed.outputs.changed == 'true'
run: ct install --config ct.yaml

- name: Check version bump
id: check-bump
if: steps.list-changed.outputs.changed == 'true'
Expand All @@ -52,7 +60,7 @@ jobs:
echo "needsbump=true" >> "$GITHUB_OUTPUT"
fi
done
- uses: actions/github-script@v7
if: steps.check-bump.outputs.needsbump == 'true'
with:
Expand All @@ -64,3 +72,4 @@ jobs:
body: ':warning: Chart `oci://${{ env.REGISTRY }}/${{ github.repository }}/charts/${{ steps.check-bump.outputs.chart }}:${{ steps.check-bump.outputs.chart_version }}` already exists in OCI registry. Please increment the chart version.'
})
core.setFailed(`Action failed with error: Chart version bump required`);
Loading