diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 1b0842c..0f2f560 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -7,20 +7,15 @@ on: #branches: [ "develop" ] jobs: - - #Job for building the application". build: - #The type of container the application will run in. runs-on: ubuntu-latest # Steps represent a sequence of tasks that will be executed asa part of the job steps: - name: Step 1 - Checkout the main branches from Github - - uses: actions/checkout@v3 - - # Configure the eclipse temurin JDK for the ubuntu runner. - # Caches dependency in maven pom file. Speeds up workflow. + uses: actions/checkout@v3 + - name: Step 2 - Set up JDK 21 uses: actions/setup-java@v3 with: @@ -30,3 +25,20 @@ jobs: - name: Step 3 - Build and test with Maven run: mvn -B package --file pom.xml + + test: + runs-on: ubuntu-latest + steps: + - name: Step 1 - Checkout the main branches from Github + uses: actions/checkout@v3 + + - name: Step 2 - Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Step 3 - Run tests with Maven + run: mvn test +