-
Notifications
You must be signed in to change notification settings - Fork 16
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
GitHub Action introduction for Build and Test #68
Conversation
Introduce an github action to test and build this project. This should replace the TravisCI solution completely
Wrap parameters in quotes to check whether that resolves the build issue
The sonar token cannot be part of a matrix with using GHA. Hence add another step with checks whether the matrix.sonar value is true/false and decide whether to run with/without sonar based on that
The "C" of a channel id should be included, eventhough it's a prefix for Slack's channel id's
The if-statments for building with/without sonar were reverted. Switch that around
If-statements should cope with true/false, so don't equals the strings. Added, rename field to sonar-enabled, for clarity
Replace true/false values for 1/0, as apparently GHA cant cope with !true
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (1.8.0_275) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 11. |
Run script for pushes to master and pull requests. Additionally, fix the name of the job to include the java version again
Let's hope this syntax is what GHA is looking for
Use latest version of slack-notify, which is v1.1.2
Shorten name to better visualize it on a GitHub page
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.
Good job =)
- Put the sonar parameters on new lines to increase readability - Add badges to the readme to clarify the status of the project
Add missing backslashes to allow mcv to be pasted over several lines
Kudos, SonarCloud Quality Gate passed! |
This pull request introduces a GitHub Action (GHA) to test and build this project, as based on GitHub's Building and Testing with Maven page.
It will perform a run based on JDK 8 and JDK 11.
Only the JDK11 build (should) runs Sonar as well.
Lastly, the results (should be / are) published to AxonIQ's Slack channel, for clarity.
To notify to Slack, the Slack Notify Build action was added.
The tokens used in this script originate from the organization level of this project.
Furthermore, no dedicated Sonar Action was introduced because of the following statement on the Sonar Action's README:
This solution will replace the current TravisCI approach entirely. As such, this pull request drops the old
.travis.yml
file.