Skip to content

(Fix): Fix setting vars to false and add testing framework #69

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 7 commits into from
Dec 12, 2024

Conversation

TylerJang27
Copy link
Contributor

@TylerJang27 TylerJang27 commented Dec 12, 2024

Because variables like use-quarantining are currently defaulting to true, we didn't have a way to set these flags to false. Applies that fix.

Also creates a lightweight jest testing framework that just runs script.sh with minimal environment variables and asserts on the invocation command. This generates a junit.xml, and then the actual GH Action is invoked as part of a PR job.

We will probably want to add to the integration/pr tests with a matrix of different inputs, but I think this is a good start. We also have plenty of other coverage of main elsewhere, although we don't currently recommend users have a tag.

Copy link
Member

@dfrankland dfrankland Dec 12, 2024

Choose a reason for hiding this comment

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

IMO, it's probably a bit easier if we did this with Python, but I think we need tests like this ASAP 👍 Thank you so much

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sounds good. Not gonna rewrite rn, but not at all opposed to someone doing so

Copy link

trunk-io bot commented Dec 12, 2024

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

@TylerJang27 TylerJang27 merged commit 5d2d01e into main Dec 12, 2024
3 checks passed
@TylerJang27 TylerJang27 deleted the tyler/fix-default-false branch December 12, 2024 22:38
Copy link

Static BadgeStatic BadgeStatic BadgeStatic Badge

View Full Report ↗︎Docs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants