From 3a970757c143224b48cce9555a972b5e0d57d3ab Mon Sep 17 00:00:00 2001 From: Ilithy <36798218+Ilithy@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:41:46 +0100 Subject: [PATCH 1/2] Create build-on-pull.yml --- .github/workflows/build-on-pull.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/build-on-pull.yml diff --git a/.github/workflows/build-on-pull.yml b/.github/workflows/build-on-pull.yml new file mode 100644 index 00000000..aa7ef276 --- /dev/null +++ b/.github/workflows/build-on-pull.yml @@ -0,0 +1,22 @@ +name: Build on Pull Request + +on: + pull_request: + branches: + - '**' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up JDK 17 + uses: actions/setup-java@v2 + with: + java-version: '17' + + - name: Build with Gradle + run: ./gradlew build From 0cc66fb769eed5bae462bb3c9ec6e91bbdd2c1a1 Mon Sep 17 00:00:00 2001 From: Ilithy <36798218+Ilithy@users.noreply.github.com> Date: Fri, 24 Jan 2025 20:49:08 +0100 Subject: [PATCH 2/2] Update build-on-pull.yml --- .github/workflows/build-on-pull.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-on-pull.yml b/.github/workflows/build-on-pull.yml index aa7ef276..c153d237 100644 --- a/.github/workflows/build-on-pull.yml +++ b/.github/workflows/build-on-pull.yml @@ -1,4 +1,4 @@ -name: Build on Pull Request +name: Build and Test on Pull Request on: pull_request: @@ -20,3 +20,12 @@ jobs: - name: Build with Gradle run: ./gradlew build + + - name: Run Tests + run: ./gradlew test + + - name: Deploy Artifacts + uses: actions/upload-artifact@v2 + with: + name: build-artifacts + path: build/libs/