Bumps [actions/setup-java](https://github.com/actions/setup-java) from 4 to 5. - [Release notes](https://github.com/actions/setup-java/releases) - [Commits](https://github.com/actions/setup-java/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-java dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
33 lines
858 B
YAML
33 lines
858 B
YAML
name: CI
|
|
on: [ push, pull_request ]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
jdk: [ 11, 17, 21 ]
|
|
include:
|
|
- jdk: 21
|
|
analysis: true
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v5
|
|
with:
|
|
java-version: ${{ matrix.jdk }}
|
|
distribution: 'temurin'
|
|
- name: Test
|
|
run: ./mvnw -B -P coverage clean verify
|
|
- name: Analysis
|
|
if: matrix.analysis && env.SONAR_TOKEN != ''
|
|
run: >
|
|
./mvnw -B sonar:sonar
|
|
-Dsonar.host.url=https://sonarcloud.io
|
|
-Dsonar.organization=stklcode-github
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|