name: PR on: pull_request: branches: [ master, main ] permissions: contents: read jobs: build: strategy: matrix: os: [ubuntu-latest] build: - java: 17 profile: codequality - java: 11 profile: java11 name: with Java ${{ matrix.build.java }} runs-on: ${{ matrix.os}} steps: - name: Check out the code uses: actions/checkout@09d2acae674a48949e3602304ab46fd20ae0c42f - name: Set up JDK 11 uses: actions/setup-java@ae2b61dbc685e60e4427b2e8ed4f0135c6ea8597 with: java-version: ${{ matrix.build.java }} distribution: 'temurin' cache: maven - name: Initialize CodeQL uses: github/codeql-action/init@0d17ea484359c43eb02ea30721ea1c9162d09b37 with: languages: java - name: Cache local Maven repository uses: actions/cache@640a1c2554105b57832a23eea0b4672fc7a790d5 with: path: ~/.m2/repository key: ${{ runner.os }}${{ matrix.build.java }}-maven-${{ hashFiles('**/pom.xml') }} restore-keys: | ${{ runner.os }}${{ matrix.build.java }}-maven- - name: Verify with Maven run: mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} verify - if: matrix.build.java == '17' name: Upload coverage to Codecov uses: codecov/codecov-action@v5.4.3 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos flags: unittests # optional name: coverage # optional fail_ci_if_error: true # optional (default = false) verbose: true # optional (default = false) - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@0d17ea484359c43eb02ea30721ea1c9162d09b37