From 8915b2e83a118ce921b2f1b92de6d36dfcfda1a4 Mon Sep 17 00:00:00 2001 From: Hauke Hund Date: Mon, 20 Nov 2023 15:17:12 +0100 Subject: [PATCH] multi-step quick build --- .github/workflows/maven-build-multi-step.yml | 35 ++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/maven-build-multi-step.yml diff --git a/.github/workflows/maven-build-multi-step.yml b/.github/workflows/maven-build-multi-step.yml new file mode 100644 index 000000000..bc4be900a --- /dev/null +++ b/.github/workflows/maven-build-multi-step.yml @@ -0,0 +1,35 @@ +name: Java CI Build with Maven (multi-step) + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup JDK 17 with maven cache + uses: actions/setup-java@v3 + with: + distribution: 'zulu' + java-version: 17 + cache: 'maven' + + - name: Show CPUs available + run: lscpu + + - name: Show RAM available + run: free -h + + - name: Run maven compile + run: mvn --batch-mode --fail-at-end --threads 2C compile test-compile + + - name: Run maven tests + run: mvn --batch-mode --fail-at-end --threads 2C surefire:test + + - name: Run maven integration tests + run: mvn --batch-mode --fail-at-end -D forkCount=2 failsafe:integration-test failsafe:verify +