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

Refactor + Test + Support preview releases #31

Merged
merged 2 commits into from
Sep 22, 2023

Conversation

schneems
Copy link
Contributor

I've resisted really touching the compilation script because it had no tests. This was tolerable when we ran scripts locally and adjustments could be made on the fly. Now that we're automating them, I wanted to have more confidence in the script. To do that I iteratively extracted, tested, and then refactored code.

In the process I got rid of most branching logic for features we don't support on GitHub actions today. If we need them in the future we have a git history.

The unit tests are fast, but not terribly comprehensive. We could continue down this path of testing and refactoring if we choose, but this was a good enough stoping point for my needs.

The only new behavior added is fixing these bugs that are all centered around preview/rc releases:

While I'm at it I also added a linter (standard).

@schneems schneems force-pushed the schneems/refactor-and-test branch from 4673df7 to cd792be Compare September 21, 2023 21:03
@schneems schneems marked this pull request as draft September 21, 2023 21:03
@schneems schneems force-pushed the schneems/refactor-and-test branch 2 times, most recently from 813666f to 2998606 Compare September 21, 2023 21:06
I've resisted really touching the compilation script because it had no tests. This was tolerable when we ran scripts locally and adjustments could be made on the fly. Now that we're automating them, I wanted to have more confidence in the script. To do that I iteratively extracted, tested, and then refactored code.

In the process I got rid of most branching logic for features we don't support on GitHub actions today. If we need them in the future we have a git history.

The unit tests are fast, but not terribly comprehensive. We could continue down this path of testing and refactoring if we choose, but this was a good enough stoping point for my needs.

The only new behavior added is fixing these bugs that are all centered around preview/rc releases:

- #28
- #29
- #30

While I'm at it I also added a linter (standard).
@schneems schneems force-pushed the schneems/refactor-and-test branch from 2998606 to d83778f Compare September 21, 2023 21:27
@schneems schneems marked this pull request as ready for review September 22, 2023 00:18
README.md Show resolved Hide resolved
lib/changelog.rb Outdated Show resolved Hide resolved
Co-authored-by: Josh W Lewis <[email protected]>
@schneems schneems force-pushed the schneems/refactor-and-test branch from 553acca to 3f5466b Compare September 22, 2023 15:12
@schneems schneems merged commit 34e39c2 into main Sep 22, 2023
@schneems schneems deleted the schneems/refactor-and-test branch September 22, 2023 15: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