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

chore: Workflows for validations #83

Merged
merged 13 commits into from
Jun 18, 2024
Merged

chore: Workflows for validations #83

merged 13 commits into from
Jun 18, 2024

Conversation

lucaspopp-wbd
Copy link
Contributor

@lucaspopp-wbd lucaspopp-wbd commented Jun 17, 2024

Workflow for semantic release, as well as PR unit tests

@lucaspopp-wbd lucaspopp-wbd marked this pull request as ready for review June 17, 2024 19:55
Comment on lines +25 to +27
-
uses: actions/checkout@v4
-
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: any reason the dashes are on their own lines?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, I've been seeing this in some newer actions code. I like this style because it makes moving lines around easier since the dash is its own line

# added some padding chars and now need to replace the padding + quotes.
# This is preferable to writing an entire huge Java project for a `trim`
# function in the template. I hate this. 🫣
sed -i.bak -E 's/@@@@"([^"]+)"@@@@/\1/g' ./${API}/*.go
Copy link
Contributor

Choose a reason for hiding this comment

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

my sed-foo is terrible. Did you find a work around to the differences between sed in mac and linux?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah! Turns out if we just set it and cleanup after, that param just configures extensions to use for local backups.

Copy link
Contributor

@danielgtaylor danielgtaylor left a comment

Choose a reason for hiding this comment

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

Did we ever resolve the SDK ordering issue where some schemas are named with numerical suffixes and would sometimes generate in a different order? I don't have an example off-hand but if you run the generator a handful of times you may run into it. Any automation we build around generating the SDK will probably have to address that issue before we can rely on it, otherwise if we rename these types due to random ordering the clients will break.

@lucaspopp-wbd
Copy link
Contributor Author

Did we ever resolve the SDK ordering issue where some schemas are named with numerical suffixes and would sometimes generate in a different order? I don't have an example off-hand but if you run the generator a handful of times you may run into it. Any automation we build around generating the SDK will probably have to address that issue before we can rely on it, otherwise if we rename these types due to random ordering the clients will break.

We have not addressed it yet. In the meantime, I added this workflow so we can easily re-run generation if something is not looking right to us.

@lucaspopp-wbd lucaspopp-wbd merged commit fba79aa into main Jun 18, 2024
3 checks passed
@lucaspopp-wbd lucaspopp-wbd deleted the wf branch June 18, 2024 17:35
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.

3 participants