Skip to content

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

Merged
merged 1 commit into from
May 1, 2025

Conversation

marcofranssen
Copy link
Collaborator

@marcofranssen marcofranssen commented Apr 30, 2025

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.

Comment on lines +9 to +14
- ".github/workflows/helm-ci.yaml"
- "charts/**"
- "tests/**"
- "Makefile"
- "go.mod"
- "go.sum"
Copy link
Collaborator Author

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.

Comment on lines -119 to -151
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
Copy link
Collaborator Author

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.

Copy link
Collaborator

@cw-Guo cw-Guo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@cw-Guo cw-Guo merged commit 4b1d267 into fluent:master May 1, 2025
7 checks passed
@marcofranssen marcofranssen deleted the run-ci-on-helm-changes branch May 7, 2025 13:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants