Stefan Kalscheuer 4e228f4e68
All checks were successful
CI / build (true, 21) (push) Successful in 49s
CI / build (17) (push) Successful in 48s
CI / build (11) (push) Successful in 49s
ci: remove Drone CI configuration
All build systems now GitHub Actions workflows, so we can remove the
alternative configuration and only keep a single pipeline definition.
2024-11-30 18:38:35 +01:00

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@v4
with:
fetch-depth: 0
- name: Set up Java
uses: actions/setup-java@v4
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 }}