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

Use helm unittest for unit testing and add a basic test [RT-1201] #19

Merged
merged 1 commit into from
Jun 29, 2023

Conversation

christian-stephen
Copy link
Contributor

⚙️ Issue

Ticket/s: https://circleci.atlassian.net/browse/RT-1201

⚙️ Change

In preparation for PR #16

Change Type:

AC:

Fix

Tests

In CI: https://app.circleci.com/pipelines/github/CircleCI-Public/container-runner-helm-chart/157/workflows/d6d3023d-0c0a-4306-9626-ff061f4448c6/jobs/426/parallel-runs/0/steps/0-108

  • Tests for new feature and update for changes
  • Linting passes and/or formatting matches the standard of the repo

🗒️ Documentation

  • Updated related documentation (if applicable).
  • Updated Change log (if exists)

@christian-stephen christian-stephen requested a review from a team as a code owner June 29, 2023 13:32
do
Comment on lines +21 to +22
set -x
if [ "$(./do version)" == "$(git show "${prev}:Chart.yaml" | grep version | sed -nE 's/.*"(.*)".*/\1/p')" ]; then
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Found a small bug with the version bump check. If you had multiple commits in a single PR and bumped the version in an earlier commit, it would fail. That's because "$(git show HEAD^:Chart.yaml should be $(git show "${prev}:Chart.yaml so that it properly checks against main instead of the same branch.

@christian-stephen christian-stephen merged commit 9e6a4e7 into main Jun 29, 2023
@christian-stephen christian-stephen deleted the RT-1201/unit-tests branch September 18, 2023 17:26
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