Skip to content

[Infra] Transfer to using the Precompiled Gradle Plugin in the build-… #100

[Infra] Transfer to using the Precompiled Gradle Plugin in the build-…

[Infra] Transfer to using the Precompiled Gradle Plugin in the build-… #100

# This workflow builds the project on every push and pull request to the main branch
name: 'Build and Test'
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
# Checks out the repository code so the workflow can access it
- name: Checkout repository
uses: actions/checkout@v6
# Sets up the specified Java version required by the project
- name: Setup JDK 21
uses: actions/setup-java@v5
with:
java-version: '21'
distribution: 'temurin'
# Sets up the Gradle for the project
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v5
# Runs the main check task to compile, test, and verify the project
- name: Run Tests & Quality Checks
run: ./gradlew check
# Gradle Daemon Cleanup
- name: Gradle Daemon Cleanup
if: always()
run: ./gradlew --stop