From 9f6af7b5a71d6dc31deedc18827a51954c2e427f Mon Sep 17 00:00:00 2001 From: Rodolphe Fontaine <30529563+Rodi26@users.noreply.github.com> Date: Thu, 17 Oct 2024 18:30:35 +0200 Subject: [PATCH] test build and test in the same file --- .github/workflows/maven-build.yml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven-build.yml b/.github/workflows/maven-build.yml index b2ab4f9a1..890217636 100644 --- a/.github/workflows/maven-build.yml +++ b/.github/workflows/maven-build.yml @@ -10,8 +10,8 @@ on: branches: [ main ] jobs: - build_and_test: - name: Build and Test + build: + name: Build runs-on: ubuntu-latest strategy: matrix: @@ -33,5 +33,14 @@ jobs: path: ~/.m2 key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} restore-keys: ${{ runner.os }}-m2 - - name: TEST with Maven Wrapper - run: ./mvnw -B test + + publish-job: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + run: ./mvnw -B test