name: "Build and test program" on: push jobs: build: name: "Build and test" runs-on: java-bookworm steps: - name: Install gradle run: | wget https://services.gradle.org/distributions/gradle-8.10-bin.zip mkdir /opt/gradle unzip -d /opt/gradle gradle-8.10-bin.zip echo PATH=$PATH:/opt/gradle/gradle-8.10/bin >> $GITHUB_ENV - name: Check out repository code uses: actions/checkout@v4 - name: Compile run: gradle --build-cache compileJava - name: Test run: gradle --build-cache check - name: Package run: gradle --build-cache assemble