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

GitHub Actions workflow: add lint, install, unittest. #195

Merged
merged 7 commits into from
Nov 29, 2023

Conversation

ldaneliukas
Copy link
Collaborator

@ldaneliukas ldaneliukas commented Nov 20, 2023

The current GHA workflow is somewhat lacking as it does not properly test the changes that are being done, which could result in merges with a chart that can't be installed.

Separated the workflow into two stages, one for pull requests and one for releases via workflow_dispatch. The job that runs on pull requests tests the chart by running lint, installing it to a cluster and running unit tests. This also removes the required inputs from workflow_dispatch as they can be automatically determined from the context, which will help when releasing it from forks (won't need to update the values every time).

Updating all unittest as part of this as they were already failing, the CI will help with keeping them up to date.


Chart version remains the same, since the Chart templates/functionality were not modified in this PR.

@ldaneliukas ldaneliukas changed the title Workflow: add lint, install, unittest. Fix tests. Workflow: add lint, install, unittest. Nov 20, 2023
@ldaneliukas ldaneliukas marked this pull request as ready for review November 22, 2023 08:07
@ldaneliukas ldaneliukas changed the title Workflow: add lint, install, unittest. GitHub Actions workflow: add lint, install, unittest. Nov 22, 2023
Xtigyro

This comment was marked as outdated.

Chart.yaml Show resolved Hide resolved
Chart.lock Show resolved Hide resolved
Copy link
Contributor

@Xtigyro Xtigyro left a comment

Choose a reason for hiding this comment

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

Ah, yeah - please update the CHANGELOG and bump the chart version in Chart.yaml.

@Xtigyro Xtigyro merged commit b715689 into puppetlabs:master Nov 29, 2023
2 checks passed
@Xtigyro
Copy link
Contributor

Xtigyro commented Nov 29, 2023

@ldaneliukas Oops, I thought you updated it. My bad. Could you please open a new PR with just that?

@ldaneliukas
Copy link
Collaborator Author

@ldaneliukas Oops, I thought you updated it. My bad. Could you please open a new PR with just that?

Yep, will do later today. Dealing with some time-sensitive things atm.

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