From 01399aa11c85823d2778644d9e4dc6de438887f8 Mon Sep 17 00:00:00 2001
From: William Andersson <wandersson.98@gmail.com>
Date: Wed, 10 Jul 2024 15:25:43 +0200
Subject: [PATCH] Rename build -> build-deploy and create a build test workflow
 on PRs (#18)

* rename build -> build-deploy and create a build test workflow on PRs

* test if chmod is necessary

* remove info flag on gradle script
---
 .../{build.yaml => build-deploy.yaml}         |  0
 .github/workflows/build-test.yaml             | 25 +++++++++++++++++++
 2 files changed, 25 insertions(+)
 rename .github/workflows/{build.yaml => build-deploy.yaml} (100%)
 create mode 100644 .github/workflows/build-test.yaml

diff --git a/.github/workflows/build.yaml b/.github/workflows/build-deploy.yaml
similarity index 100%
rename from .github/workflows/build.yaml
rename to .github/workflows/build-deploy.yaml
diff --git a/.github/workflows/build-test.yaml b/.github/workflows/build-test.yaml
new file mode 100644
index 00000000..21cd2f39
--- /dev/null
+++ b/.github/workflows/build-test.yaml
@@ -0,0 +1,25 @@
+name: Build and Test
+on:
+  pull_request:
+    branches:
+      - main
+
+permissions:
+  contents: read
+
+jobs:
+  build:
+    name: Build and test
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout project sources
+        uses: actions/checkout@v4
+
+      - name: Setup Java
+        uses: actions/setup-java@v4
+        with:
+          distribution: 'temurin'
+          java-version: '21'
+
+      - name: Build with Gradle
+        run: ./gradlew build
\ No newline at end of file