build: utilizing new java version, but still building with language level 8 #4939
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| branches: | |
| - main | |
| jobs: | |
| main: | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| build: | |
| - java: 17 | |
| profile: codequality | |
| - java: 8 | |
| profile: java8 | |
| name: with Java ${{ matrix.build.java }} | |
| runs-on: ${{ matrix.os}} | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: Set up JDK ${{ matrix.build.java }} | |
| uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4 | |
| with: | |
| java-version: ${{ matrix.build.java }} | |
| distribution: 'temurin' | |
| cache: maven | |
| - name: Cache local Maven repository | |
| uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4 | |
| with: | |
| path: ~/.m2/repository | |
| key: ${{ runner.os }}${{ matrix.build.java }}-maven-${{ hashFiles('**/pom.xml') }} | |
| restore-keys: | | |
| ${{ runner.os }}${{ matrix.build.java }}-maven- | |
| - name: Maven Verify | |
| run: mvn --batch-mode --activate-profiles e2e,${{ matrix.build.profile }} clean verify |