diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b566beb7..f6ea5fbf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -54,6 +54,32 @@ jobs: flags: unit-tests fail_ci_if_error: true verbose: true + unit-tests-java-target: + runs-on: ubuntu-latest + name: Java 11 target 11 unit test + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-ut-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2-ut- + - name: Unit Tests + run: mvn --batch-mode --activate-profiles github test jacoco:report -Dmaven.compiler.target=11 -Dmaven.compiler.source=11 + - name: Upload test coverage report + uses: codecov/codecov-action@v2 + with: + files: ./ecaudit/target/site/jacoco/jacoco.xml,./common/target/site/jacoco/jacoco.xml,./eclog/target/site/jacoco/jacoco.xml + flags: unit-tests + fail_ci_if_error: true + verbose: true integration-tests: runs-on: ubuntu-latest strategy: @@ -76,3 +102,22 @@ jobs: restore-keys: ${{ runner.os }}-m2-it- - name: Integration Tests run: mvn --batch-mode --activate-profiles github test-compile failsafe:integration-test failsafe:verify + integration-tests-java-target: + runs-on: ubuntu-latest + name: Java 11 target 11 integration tests + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Set up JDK 11 + uses: actions/setup-java@v2 + with: + distribution: 'adopt' + java-version: '11' + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-it-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2-it- + - name: Integration Tests + run: mvn --batch-mode --activate-profiles github test-compile failsafe:integration-test failsafe:verify -Dmaven.compiler.target=11 -Dmaven.compiler.source=11 diff --git a/pom.xml b/pom.xml index 9da4d2ce..fd311277 100644 --- a/pom.xml +++ b/pom.xml @@ -185,8 +185,8 @@ maven-compiler-plugin ${org.apache.maven.plugins.maven-compiler-plugin.version} - 1.8 - 1.8 + ${maven.compiler.source} + ${maven.compiler.target}