generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: adds integration test to the workflow (#259)
- Loading branch information
Showing
1 changed file
with
13 additions
and
4 deletions.
There are no files selected for viewing
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
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 ] | ||
|
@@ -7,7 +7,7 @@ env: | |
REGISTRY: ghcr.io | ||
|
||
jobs: | ||
helm-lint: | ||
helm-lint-test: | ||
runs-on: [ default ] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
@@ -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' | ||
|
@@ -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: | ||
|
@@ -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`); | ||