All checks were successful
continuous-integration/drone/push Build is passing
Cherry-picked from 7cb5aefb5badf2bff333928fe429498fe9c8a73e
34 lines
863 B
YAML
34 lines
863 B
YAML
name: CI
|
|
on: [ push, pull_request ]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
jdk: [ 8, 11, 17 ]
|
|
include:
|
|
- jdk: 11
|
|
analysis: true
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Java
|
|
uses: actions/setup-java@v3
|
|
with:
|
|
java-version: ${{ matrix.jdk }}
|
|
distribution: 'temurin'
|
|
- name: Test
|
|
run: mvn -B -P coverage clean verify
|
|
- name: Analysis
|
|
if: matrix.analysis
|
|
run: >
|
|
mvn -B sonar:sonar
|
|
-Dsonar.host.url=https://sonarcloud.io
|
|
-Dsonar.organization=stklcode-github
|
|
-Dsonar.login=$SONAR_TOKEN
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
|