test/docs: use latest Maven Central version dynamically #7
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: Java 21 Tests | |
| on: | |
| push: | |
| branches: | |
| - '**' | |
| pull_request: | |
| jobs: | |
| test-java21: | |
| name: Java 21 LTS Tests | |
| runs-on: ubuntu-latest | |
| env: | |
| DBC_USERNAME: ${{ secrets.DBC_USERNAME }} | |
| DBC_PASSWORD: ${{ secrets.DBC_PASSWORD }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Java 21 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 21 | |
| cache: maven | |
| - name: Show tool versions | |
| run: | | |
| java -version | |
| mvn -version | |
| - name: Run tests (excluding online integration) | |
| run: mvn --batch-mode --errors --fail-at-end --show-version -Djava.release=21 -Dtest='!Online*IntegrationTest' clean test | |
| - name: Upload test and coverage artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-java-21 | |
| path: | | |
| target/surefire-reports/ | |
| target/site/jacoco/ |