Add GitHub Actions workflow for CI#2
Conversation
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>
|
👋 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 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 |
There was a problem hiding this comment.
@jules will this also run the unit tests? If not can you update to add another step to run unit tests
There was a problem hiding this comment.
Yes, gradle build includes running all tests. I have renamed the step to 'Build and Test with Gradle' to make this clearer.
| - name: Grant execute permission for gradlew | ||
| run: chmod +x gradlew | ||
|
|
||
| - name: Setup Gradle |
There was a problem hiding this comment.
Is this setting up gradle or running the build?
There was a problem hiding this comment.
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>
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
mainbranch, or when a pull request is created against taht branch.Key features of the workflow:
mainandmaster.ubuntu-latest)..travis.ymlandbuild.gradle).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