build: testing base64 encoded pgp keys #128
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
name: Java CI with Gradle | |
on: | |
push: | |
branches: [ "main", "dev" ] | |
pull_request: | |
branches: [ "main", "dev" ] | |
jobs: | |
build: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Execute Gradle assemble | |
run: ./gradlew assemble | |
- name: Execute tests | |
run: ./gradlew test | |
- name: Code style | |
run: ./gradlew ktfmtCheck | |
- name: Test Summary | |
uses: test-summary/action@v2 | |
with: | |
paths: "**/test-results/**/TEST-*.xml" | |
if: always() | |
- name: Publish Test Report | |
uses: mikepenz/action-junit-report@34f4f0daa6b03aee5efc77b9c2cbc51a75781341 | |
if: success() || failure() # always run even if the previous step fails | |
with: | |
report_paths: '**/build/test-results/test/TEST-*.xml' | |
token: ${{ secrets.GITHUB_TOKEN }} | |
comment: true | |
updateComment: true | |
- name: Code Coverage | |
id: jacoco | |
uses: madrapps/jacoco-report@cae93f61ea553f8babe9d8c1e365c1ce5cece922 | |
with: | |
paths: | | |
${{ github.workspace }}/**/adapter/build/reports/jacoco/test/jacocoTestReport.xml, | |
${{ github.workspace }}/**/core/build/reports/jacoco/test/jacocoTestReport.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: '75' | |
min-coverage-changed-files: '75' | |
title: Code Coverage | |
update-comment: true |