[LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push#106
Conversation
…pon below conditions. - Create/open a new pull request - Re-open a pull request - Edited/updated a pull request - Synchronized a pull request - Push to the 2.4-li branch - Push to 2.4-li-dev-* branch(es) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = N/A
| push: | ||
| branches: |
There was a problem hiding this comment.
So this workflow will also be triggered when pushing to these branches. Is this the intended behavior? Or you want it to be triggered only on pull request?
There was a problem hiding this comment.
Yes, I do intend to trigger this workflow whenever those branches are updated (a PR is merged to it or someone force push to it).
If we do not include the push event here, will the workflow be trigger when we merge a PR to any of those branches?
There was a problem hiding this comment.
Yeah, then you may want to change the name / description here:
"name: Pull Request Build and Test Workflow
Run this workflow every time a new pull request is created in the repository"
It looks like it will just happen during a PR creation.
Otherwise all look good to me.
There was a problem hiding this comment.
What's the reason for triggering the test workflow upon push events?
There was a problem hiding this comment.
The motivation is that when we need to force-push to a branch, we hope to trigger this workflow too.
There was a problem hiding this comment.
IMO, we should never allow force push to an official branch such as 2.4-li.
Assuming there are no force-pushes, then it seems we don't need to trigger CI on regular push events.
I'd suggest we remove these, what do you think?
| push: | ||
| branches: |
There was a problem hiding this comment.
Yeah, then you may want to change the name / description here:
"name: Pull Request Build and Test Workflow
Run this workflow every time a new pull request is created in the repository"
It looks like it will just happen during a PR creation.
Otherwise all look good to me.
This commit is a squash of: - [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (#106) - [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (#107) - [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (#108) - [LI-HOTFIX] Updating description of the CI flow (#114) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = N/A
This commit is a squash of: - [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (linkedin#106) - [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (linkedin#107) - [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (linkedin#108) - [LI-HOTFIX] Updating description of the CI flow (linkedin#114) - Add rat to CI build to make it consistent with PR (linkedin#173) And partially picked up the rat set up from - Adding licence and rat check (linkedin#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI [LI-HOTFIX] Add rat to CI build to make it consistent with PR (linkedin#173)
This commit is a squash of: - [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (linkedin#106) - [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (linkedin#107) - [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (linkedin#108) - [LI-HOTFIX] Updating description of the CI flow (linkedin#114) - Add rat to CI build to make it consistent with PR (linkedin#173) And partially picked up the rat set up from - Adding licence and rat check (linkedin#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI [LI-HOTFIX] Add rat to CI build to make it consistent with PR (linkedin#173)
This commit is a squash of: - [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (linkedin#106) - [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (linkedin#107) - [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (linkedin#108) - [LI-HOTFIX] Updating description of the CI flow (linkedin#114) - Add rat to CI build to make it consistent with PR (linkedin#173) And partially picked up the rat set up from - Adding licence and rat check (linkedin#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI [LI-HOTFIX] Add rat to CI build to make it consistent with PR (linkedin#173)
This commit is a squash of: - 97f6a93 [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (#106) - bb6cab9 [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (#107) - 4ac92ac [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (#108) - 883ece3 [LI-HOTFIX] Updating description of the CI flow (#114) - 77cad71 [LI-HOTFIX] Add rat to CI build to make it consistent with PR (#173) - 2af73a1 [LI-HOTFIX] CI: Split test builds to multiple jobs - 22517e6 [LI-HOTFIX] CI: Enable spotbugs on build (#195) And partially picked up the rat set up from - 66596f0 [LI-HOTFIX] Adding licence and rat check (#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI
This commit is a squash of: - 97f6a93 [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (#106) - bb6cab9 [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (#107) - 4ac92ac [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (#108) - 883ece3 [LI-HOTFIX] Updating description of the CI flow (#114) - 77cad71 [LI-HOTFIX] Add rat to CI build to make it consistent with PR (#173) - 2af73a1 [LI-HOTFIX] CI: Split test builds to multiple jobs - 22517e6 [LI-HOTFIX] CI: Enable spotbugs on build (#195) And partially picked up the rat set up from - 66596f0 [LI-HOTFIX] Adding licence and rat check (#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI
This commit is a squash of: - 97f6a93 [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (linkedin#106) - bb6cab9 [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (linkedin#107) - 4ac92ac [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (linkedin#108) - e3ca505 [LI-HOTFIX] Add note on LinkedIn Kafka Branch to README - 883ece3 [LI-HOTFIX] Updating description of the CI flow (linkedin#114) - 77cad71 [LI-HOTFIX] Add rat to CI build to make it consistent with PR (linkedin#173) - 2af73a1 [LI-HOTFIX] CI: Split test builds to multiple jobs - 22517e6 [LI-HOTFIX] CI: Enable spotbugs on build (linkedin#195) And partially picked up the rat set up from - 66596f0 [LI-HOTFIX] Adding licence and rat check (linkedin#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI
This commit is a squash of: - 97f6a93 [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (#106) - bb6cab9 [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (#107) - 4ac92ac [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (#108) - e3ca505 [LI-HOTFIX] Add note on LinkedIn Kafka Branch to README - 883ece3 [LI-HOTFIX] Updating description of the CI flow (#114) - 77cad71 [LI-HOTFIX] Add rat to CI build to make it consistent with PR (#173) - 2af73a1 [LI-HOTFIX] CI: Split test builds to multiple jobs - 22517e6 [LI-HOTFIX] CI: Enable spotbugs on build (#195) And partially picked up the rat set up from - 66596f0 [LI-HOTFIX] Adding licence and rat check (#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI
This commit is a squash of: - 97f6a93 [LI-HOTFIX] Add a Github Actions workflow to trigger build and test upon PR and push (linkedin#106) - bb6cab9 [LI-HOTFIX] Add a Github Actions workflow to trigger build and run all tests upon a tag creation/push (linkedin#107) - 4ac92ac [LI-HOTFIX] Enable the Github Actions workflow to upload the built archive and disable all Travis actions (linkedin#108) - e3ca505 [LI-HOTFIX] Add note on LinkedIn Kafka Branch to README - 883ece3 [LI-HOTFIX] Updating description of the CI flow (linkedin#114) - 77cad71 [LI-HOTFIX] Add rat to CI build to make it consistent with PR (linkedin#173) - 2af73a1 [LI-HOTFIX] CI: Split test builds to multiple jobs - 22517e6 [LI-HOTFIX] CI: Enable spotbugs on build (linkedin#195) And partially picked up the rat set up from - 66596f0 [LI-HOTFIX] Adding licence and rat check (linkedin#159) TICKET = N/A LI_DESCRIPTION = LIKAFKA-34202 EXIT_CRITERIA = When migrating off Github Actions for CI
Add a Github Actions workflow to trigger build and test upon the below conditions.
Test: Created a PR to my own forked repo and observed that this workflow was triggered (link)TICKET = N/A
LI_DESCRIPTION = LIKAFKA-34202
EXIT_CRITERIA = N/A