functionType to upper case #96
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
name: Coverage on PR | |
on: | |
pull_request: | |
jobs: | |
pr_scan: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
pull-requests: write | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Setup JDK | |
uses: graalvm/setup-graalvm@v1 | |
with: | |
java-version: '17' | |
distribution: 'graalvm' | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
- name: Test and Integration tests | |
run: | | |
mvn test -Dquarkus.package.type=native -Dquarkus.application.name=atm-layer-model -Dquarkus.profile=prod | |
- name: Add coverage to PR | |
id: jacoco | |
uses: madrapps/jacoco-report@7a334255fbce42f385d7567c25d986a9c62e2971 | |
with: | |
paths: target/jacoco-report/jacoco.xml | |
token: ${{ secrets.GITHUB_TOKEN }} | |
min-coverage-overall: 90 | |
title: jacoco | |
update-comment: true | |
- name: Fail PR if overall coverage is less than 90% | |
if: ${{ steps.jacoco.outputs.coverage-overall < 90.0 }} | |
uses: actions/github-script@v6 | |
with: | |
script: | | |
core.setFailed('Overall coverage is less than 90%!') |