Skip to content

Commit

Permalink
chore: adds integration test to the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
ibakshay committed Jul 29, 2024
1 parent 5e4000e commit e9eb916
Showing 1 changed file with 13 additions and 4 deletions.
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`);

0 comments on commit e9eb916

Please sign in to comment.