mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-25 07:27:18 +01:00
53 lines
1.6 KiB
YAML
53 lines
1.6 KiB
YAML
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', '11.0.3', '15', '15.0.5']
|
|
name: Test Java ${{ matrix.Java }}, ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3.5.3
|
|
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v3.11.0
|
|
with:
|
|
java-version: ${{ matrix.java }}
|
|
distribution: 'zulu'
|
|
|
|
- name: Build with Gradle
|
|
uses: gradle/gradle-build-action@v2.5.1
|
|
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/codacy-coverage-reporter-action@v1.3.0
|
|
with:
|
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
|
coverage-reports: ${{ github.workspace }}/code-coverage-report/build/reports/jacoco/testCodeCoverageReport/testCodeCoverageReport.xml
|