-
Notifications
You must be signed in to change notification settings - Fork 4
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
Build and deploy with GitHub Actions #247
Conversation
run: | | ||
mvn package -DskipTests | ||
cd ./target/ | ||
echo "::set-output name=zip_name::$(echo recheck.cli-*-bin.zip)" |
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.
Can't we use the same wildcard directly in L50?
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.
Not that I know … did some research and found this issue:
actions/upload-release-asset#4
Maintainer (@IAmHughes) suggests this approach.
I like the approach and only have some minor requests:
|
This is from official examples like here: https://github.com/actions/cache/blob/master/examples.md#java---maven While multiline is indeed not needed, I think it is a bit more readable. But I don't really care as long as it is consistent.
Supported, but we currently don't need them?
Hmmm, why? It is already there and faster since we don't have to pull all dependencies all the time?
We can use secrets for this.
There seem to be a bunch of actions, but for what do we need it here? |
@oezelenes thx for pointing to |
@modulo11 without caching requires 30 – 40 s more: https://github.com/retest/recheck.cli/actions/runs/67976320 |
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.
-
What about matrix builds?
Supported, but we currently don't need them?
Since we do not ship a JDK currently, at least java 8 and 14? (e.g. my workflow)
-
Supply a way to externally change maven args e.g. via env variables like in the travis builds
We can use secrets for this.
Do we still want to do this? If yes, do we need to distinguish build and deploy?
Java 14 and SonarCloud currently don't mix well (see e.g. here). We could run the analysis only if Java 8 is being used, however, we didn't do this with Travis either. The PR, as it is, is functionally equivalent with what we had before. Therefore, I would suggest to consider a build matrix in a separate step.
I would experiment with it over time and leave it as it is. It feels to me that using secrets for this purpose is not the right thing to do, but I can't come up with an alternative. Also, in Travis we were using environment variables as well, which are very similar (one could select visibility and they are not encrypted by default). |
f4ee6e1
to
8d1810d
Compare
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.
Ok, let's try it out.
Please be sure to update the branch protection rules before merging this. Mergify potentially needs a refresh afterwards.
@Mergifyio refresh |
Command |
To be discussed in tomorrow's innovations meeting.