[BXMSPROD-2189] : Split maven run for test and sonar analysis - jdk11 and jdk17 #570
Workflow file for this run
This file contains 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: Java CI with Gradle | |
on: | |
pull_request: | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
test: | |
concurrency: | |
group: pull_request-${{ github.head_ref }} | |
cancel-in-progress: true | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
java-version: [11] | |
java-distribution: ['temurin'] | |
fail-fast: true | |
runs-on: ${{ matrix.os }} | |
name: ${{ matrix.os }} - Java ${{ matrix.java-version }} - Gradle Test | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up JDK ${{ matrix.java-version }} | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java-version }} | |
distribution: ${{ matrix.java-distribution }} | |
- name: Test with Gradle | |
uses: gradle/[email protected] | |
with: | |
arguments: test | |
build-root-directory: job-dsls |