Run integration and unit tests in parallel
# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
-name: Unomi CI - Build and tests
+name: Build and run tests
on:
push:
@@ -10,7 +10,8 @@ on:
branches: [ master ]
jobs:
- build-and-tests:
+ unit-tests:
+ name: Execute unit tests
runs-on: ubuntu-latest
strategy:
matrix:
@@ -25,7 +26,18 @@ jobs:
- name: Build and Unit tests
run: mvn -U -B -e clean install
+ integration-tests:
+ name: Execute integration tests
+ runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ java: [ 1.8, 11]
+ steps:
+ - uses: actions/checkout@v2
+ - name: Set up JDK ${{ matrix.java }}
+ uses: actions/setup-java@v1
+ with:
+ java-version: ${{ matrix.java }}
+ cache: maven
- name: Integration tests
- run: mvn -pl itests clean install -Pintegration-tests
- - name: Deploy snapshots to Apache Snapshots repository
- run: mvn clean install deploy -P integration-tests,docker
+ run: mvn clean install -Pintegration-tests
