[ci] Owasp check: add branch-2.10 and fix JDK version for each branch
@@ -37,6 +37,8 @@ jobs:
include:
- name: master
checkout_branch: 'master'
+ - name: branch-2.10
+ checkout_branch: 'branch-2.10'
- name: branch-2.9
checkout_branch: 'branch-2.9'
- name: branch-2.8
@@ -64,11 +66,19 @@ jobs:
${{ runner.os }}-m2-dependencies-core-modules-
- name: Set up JDK 17
+ if: ${{ matrix.name != "branch-2.8" && matrix.name != "branch-2.9" && matrix.name != "branch-2.10" }}
uses: actions/setup-java@v2
with:
distribution: 'temurin'
java-version: 17
+ - name: Set up JDK 11
+ if: ${{ matrix.name == "branch-2.8" || matrix.name == "branch-2.9" || matrix.name == "branch-2.10" }}
+ uses: actions/setup-java@v2
+ with:
+ distribution: 'temurin'
+ java-version: 11
+
- name: run install by skip tests
run: mvn -q -B -ntp clean install -DskipTests
