Skip to content

Add openJDK 20 compatibility #23

Add openJDK 20 compatibility

Add openJDK 20 compatibility #23

Workflow file for this run

name: Build Bisq
on:
push:
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macOS-latest, windows-latest]
java: [ '11.0.19', '15.0.10', '17.0.7', '20.0.1']
name: Test Java ${{ matrix.Java }}, ${{ matrix.os }}
steps:
- uses: actions/[email protected]
- name: Set up JDK
uses: actions/[email protected]
with:
java-version: ${{ matrix.java }}
java-package: jdk+fx
distribution: zulu
- name: Build with Gradle
uses: gradle/[email protected]
with:
arguments: build jacocoTestReport testCodeCoverageReport --scan
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
publish_coverage:
name: Publish coverage
runs-on: ubuntu-latest
needs: build
steps:
- name: Download coverage report
uses: actions/download-artifact@v3
with:
name: coverage-report
path: code-coverage-report/build/reports/jacoco/testCodeCoverageReport
- name: Run codacy-coverage-reporter
uses: codacy/[email protected]
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: ${{ github.workspace }}/code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml