From f023f8e8f1df942d6cebdf40e7cfe9c820de9eba Mon Sep 17 00:00:00 2001 From: mcrcortex <18544518+MCRcortex@users.noreply.github.com> Date: Fri, 25 Apr 2025 14:18:41 +1000 Subject: [PATCH] change git workflow --- .github/workflows/check-does-build-pr.yml | 27 +++++++++++++++++++++++ .github/workflows/check-does-build.yml | 2 +- 2 files changed, 28 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/check-does-build-pr.yml diff --git a/.github/workflows/check-does-build-pr.yml b/.github/workflows/check-does-build-pr.yml new file mode 100644 index 00000000..17529549 --- /dev/null +++ b/.github/workflows/check-does-build-pr.yml @@ -0,0 +1,27 @@ +name: check-does-build-pr + +on: [ pull_request ] +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout sources + uses: actions/checkout@v4 + + - name: Verify wrapper + uses: gradle/actions/wrapper-validation@v3 + + - name: Setup Java + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: 21 + + - name: Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + cache-read-only: true + + - name: Gradle build + run: ./gradlew build \ No newline at end of file diff --git a/.github/workflows/check-does-build.yml b/.github/workflows/check-does-build.yml index e0a15071..c672534d 100644 --- a/.github/workflows/check-does-build.yml +++ b/.github/workflows/check-does-build.yml @@ -1,6 +1,6 @@ name: check-does-build -on: [ push, pull_request ] +on: [ push ] jobs: build: runs-on: ubuntu-latest