test build and test in the same file

This commit is contained in:
Rodolphe Fontaine 2024-10-17 18:30:35 +02:00
parent e410fb0b24
commit 9f6af7b5a7

View file

@ -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