feat: Add vmlens checks #4411
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: 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@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 | |
- name: Set up JDK ${{ matrix.build.java }} | |
uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 | |
with: | |
java-version: ${{ matrix.build.java }} | |
distribution: 'temurin' | |
cache: maven | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@5b49155c7f37b5ec074ffd26b428e6b64b1bf412 | |
with: | |
languages: java | |
- name: Cache local Maven repository | |
uses: actions/cache@638ed79f9dc94c1de1baef91bcab5edaa19451f4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}${{ matrix.build.java }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: | | |
${{ runner.os }}${{ matrix.build.java }}-maven- | |
- if: matrix.build.java == '17' | |
name: Verify | |
run: mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} verify | |
- if: matrix.build.java == '17' | |
name: Run tests with VmLens | |
run: mvn --batch-mode --update-snapshots --activate-profiles e2e,${{ matrix.build.profile }} vmlens-maven-plugin:test | |
- if: matrix.build.java != '17' | |
name: Verify | |
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/[email protected] | |
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@5b49155c7f37b5ec074ffd26b428e6b64b1bf412 |