From a3ed26ea08c67013d901335fdb1fbfc5a26c4110 Mon Sep 17 00:00:00 2001 From: Oliver Drotbohm Date: Fri, 30 Jun 2023 17:13:47 +0200 Subject: [PATCH] GH-226 - Introduce dedicated CI build for pull requests. That new build skips the attempt to deploy artifacts to Artifactory. --- .github/workflows/build-prs.yaml | 25 +++++++++++++++++++++++++ .github/workflows/build.yaml | 2 -- 2 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-prs.yaml diff --git a/.github/workflows/build-prs.yaml b/.github/workflows/build-prs.yaml new file mode 100644 index 00000000..604e8f57 --- /dev/null +++ b/.github/workflows/build-prs.yaml @@ -0,0 +1,25 @@ +name: PR Build + +on: + pull_request: + branches: [ main ] + +jobs: + build: + name: Build project + runs-on: ubuntu-latest + + steps: + + - name: Check out sources + uses: actions/checkout@v3 + + - name: Set up JDK 17 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' + java-version: 17 + cache: 'maven' + + - name: Build with Maven + run: ./mvnw -B diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 6e995d7f..4ccc1b59 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -3,8 +3,6 @@ name: CI Build on: push: branches: [ main ] - pull_request: - branches: [ main ] jobs: build: