-
Notifications
You must be signed in to change notification settings - Fork 278
ci: Ensure helm tests run on changes to the chart #1597
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
Conversation
Signed-off-by: Marco Franssen <[email protected]>
- ".github/workflows/helm-ci.yaml" | ||
- "charts/**" | ||
- "tests/**" | ||
- "Makefile" | ||
- "go.mod" | ||
- "go.sum" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only runs when these files change.
helm_tests: | ||
runs-on: ubuntu-22.04 | ||
timeout-minutes: 30 | ||
name: helm e2e tests | ||
env: | ||
GO111MODULE: "on" | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Go | ||
uses: actions/setup-go@0aaccfd150d50ccaeb58ebd88d36e91967a5f35b # v5.4.0 | ||
with: | ||
go-version-file: go.mod | ||
cache-dependency-path: go.sum | ||
|
||
- name: Setup kubectl | ||
uses: marcofranssen/setup-kubectl@d81bf181729cee2bc813ac2ea2f74dec90f01f99 # v1.3.0 | ||
with: | ||
kubectlVersion: ${{ env.KUBECTL_VERSION }} | ||
|
||
- name: Install Helm | ||
uses: azure/setup-helm@b9e51907a09c216f16ebe8536097933489208112 # v4.3.0 | ||
with: | ||
version: ${{ env.HELM_VERSION }} | ||
|
||
- name: Install dependences | ||
run: make ginkgo kind | ||
|
||
- name: Run helm e2e tests | ||
run: make helm-e2e |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
didn't depend on other jobs so no need to be in same workflow (allowing for more finegrained control when this part runs see above comment.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
This ensures PRs, like this will run the helm ci
#1585
Moved it out of the main workflow so it doesn't affect running other workflows that shouldn't be required so we can have bit more finegraining on the paths.