diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 517421ba..4fc3e1ce 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -34,8 +34,13 @@ jobs: java-version: ${{ matrix.java-version }} distribution: 'adopt' - - name: Run tests - run: make ja_test ${{ matrix.java-version > 17 || 'MVN_FLAGS="-e -fn"' }} + - name: Run tests (serially) + if: ${{ matrix.java-version == 21 && matrix.os == 'ubuntu-latest' }} + run: make ja_test + + - name: Run tests (in parallel) + if: ${{ matrix.java-version != 21 || matrix.os != 'ubuntu-latest' }} + run: make ja_test_auto - name: Upload code coverage to Codecov uses: codecov/codecov-action@v3 diff --git a/java/pom.xml b/java/pom.xml index 2b6d8391..304f33d3 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -7,7 +7,6 @@ 1.0-SNAPSHOT - org.junit.jupiter junit-jupiter-api @@ -69,25 +68,37 @@ - - net.revelc.code.formatter - formatter-maven-plugin - 2.24.1 - - (\W+\.?[^\W]+\(.*\);?\n)+ - \n - 4 - 4 - UTF-8 - - - - - format - - - - + + + format + + [17,) + + + + + net.revelc.code.formatter + formatter-maven-plugin + 2.24.1 + + (\W+\.?[^\W]+\(.*\);?\n)+ + \n + 4 + 4 + UTF-8 + + + + + format + + + + + + + + \ No newline at end of file