-
-
Notifications
You must be signed in to change notification settings - Fork 217
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
Added version check to CI checks #545
Conversation
Two small comments:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM; also pay attention to gavv's comments please.
Thank you!
@dheerajd5 As you mentioned in the issue, android failure is not related to your pr. I restarted that job. |
Hey, So I looked into conditional execution in Actions, to check if we're building a tag with v*, we can probably check the latest commit message, and see if the string matches a v* format. Edit: Removed the note asking about to how rebase without coauthoring the commit. |
I was looking into the first point, I'm not really sure how to go about it do I check the latest commit and message and try to find a v* matching string? |
f0556b2
to
c92258f
Compare
I think we should extract this from The new job then can be enabled conditionally only for properly named tags. Here is how you can do it: https://github.com/roc-streaming/roc-go/blob/6212890ef56528624350571ce13f308e0a3ae11c/.github/workflows/build.yaml#L219C53-L219C53 |
There are also ways to conditionally execute steps in a job, that's what I've done. Although the solution is a bit hard coded, the workflow only executes the step, fetch tag, if the script that is going to be run is version-check. But in this case, there was no way that I was aware of where I could conditionally run it based on the tag name. I'll go ahead with the solution you suggested. |
Hey, so I implemented the changes, but it's not passing a few unrelated tests. I don't really have an idea why, Namely, the |
Could you please fetch fresh develop and rebase on it? Should be fixed now. |
ba90ba2
to
a9348ba
Compare
Added conditional execution for check-version script Extracting check-version into release checks job
Hey so I did what you told, it has passed all the checks now. It hasn't run the check I've written cause I didn't upload this with a version tag. |
Thanks. Tested it in a fork, there were problems. Follow-up commit with fixes: 0266785 Changes:
|
Ahh, sorry I couldn't submit a more complete code, but enjoyed working, thanks guys @gavv @adrianopol |
You're welcome! |
This PR adds a version-check to CI checks. It takes the version fetched from git and from the file
version.h
and compares it.#497