ci: test for openjdk 21 (LTS) #615
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
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-gradle | |
name: Build and Test | |
on: | |
push: | |
branches: | |
- master | |
- main | |
pull_request: | |
branches: | |
- master | |
- main | |
- 'dev**' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
env: | |
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }} | |
jobs: | |
build: | |
runs-on: ${{ matrix.operating-system }} | |
strategy: | |
matrix: | |
operating-system: [ubuntu-latest, macOS-latest, windows-latest] | |
jdk: [ 21 ] # (open)JDK releases | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up openJDK version | |
uses: actions/setup-java@v4 | |
with: | |
java-version: ${{ matrix.jdk }} | |
distribution: 'zulu' # =openJDK | |
- name: Setup Gradle | |
uses: gradle/actions/setup-gradle@v4 | |
- name: Build and Test with Gradle | |
run: ./gradlew build | |
- name: Do one Coveralls test report | |
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 21 | |
run: ./gradlew jacocoTestReport coveralls | |
- name: Docker build and test | |
if: matrix.operating-system == 'ubuntu-latest' && matrix.jdk == 21 | |
run: time bash ./docker/test_docker.sh | |
shell: bash |