Skip to content

Add GitHub Actions workflow for CI#2

Merged
phillcunnington merged 3 commits into
mainfrom
add-github-actions-workflow-13794191362079335597
Mar 3, 2026
Merged

Add GitHub Actions workflow for CI#2
phillcunnington merged 3 commits into
mainfrom
add-github-actions-workflow-13794191362079335597

Conversation

@phillcunnington

@phillcunnington phillcunnington commented Mar 3, 2026

Copy link
Copy Markdown
Owner

I've added a GitHub Actions workflow to the project. This workflow is designed to automatically build and test the project whenever a push is made to the main branch, or when a pull request is created against taht branch.

Key features of the workflow:

  • Triggers: Push and Pull Request on main and master.
  • Environment: Uses the latest Ubuntu runner (ubuntu-latest).
  • Java Setup: Configures JDK 25 (as specified in the project's .travis.yml and build.gradle).
  • Caching: Utilizes Gradle caching to speed up builds.
  • Build Tool: Executes the build using the Gradle Wrapper via the gradle/gradle-build-action.

This will provide continuous integration for the project, replacing or supplementing the existing Travis CI configuration.


PR created automatically by Jules for task 13794191362079335597 started by @phillcunnington

Create a workflow in `.github/workflows/build.yml` that runs on `push`
and `pull_request` to `main` and `master` branches. The workflow sets
up Java 8 and uses the `gradle/gradle-build-action` to run `./gradlew build`.

Co-authored-by: phillcunnington <3168745+phillcunnington@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

…DK 25

Create a workflow in `.github/workflows/build.yml` that runs on `push`
and `pull_request` to the `main` branch, specifically ignoring `master`.
The workflow sets up JDK 25 and uses `gradle/actions/setup-gradle@v4`
to run `./gradlew build`.

Co-authored-by: phillcunnington <3168745+phillcunnington@users.noreply.github.com>
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
with:
arguments: build

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@jules will this also run the unit tests? If not can you update to add another step to run unit tests

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Yes, gradle build includes running all tests. I have renamed the step to 'Build and Test with Gradle' to make this clearer.

Comment thread .github/workflows/build.yml Outdated
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Setup Gradle

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Is this setting up gradle or running the build?

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

The gradle/actions/setup-gradle action not only sets up Gradle but also executes the specified arguments. I have renamed the step to 'Build and Test with Gradle' to avoid confusion.

Rename the Gradle build step to "Build and Test with Gradle" to
explicitly indicate that unit tests are executed as part of the
`build` task. This addresses PR feedback for clarity.

Co-authored-by: phillcunnington <3168745+phillcunnington@users.noreply.github.com>
@phillcunnington phillcunnington changed the base branch from master to main March 3, 2026 10:19
@phillcunnington phillcunnington merged commit 2e5e98c into main Mar 3, 2026
@phillcunnington phillcunnington deleted the add-github-actions-workflow-13794191362079335597 branch March 3, 2026 10:19
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.

1 participant