Skip to content

Feature/did document fields + add service entry for token endpoint #140

Feature/did document fields + add service entry for token endpoint

Feature/did document fields + add service entry for token endpoint #140

# /********************************************************************************
# * Copyright (c) 2023 Contributors to the Eclipse Foundation
# *
# * See the NOTICE file(s) distributed with this work for additional
# * information regarding copyright ownership.
# *
# * This program and the accompanying materials are made available under the
# * terms of the Apache License, Version 2.0 which is available at
# * https://www.apache.org/licenses/LICENSE-2.0.
# *
# * Unless required by applicable law or agreed to in writing, software
# * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# * License for the specific language governing permissions and limitations
# * under the License.
# *
# * SPDX-License-Identifier: Apache-2.0
# ********************************************************************************/
name: Application test and coverage -- PR context
on:
pull_request:
paths:
- 'src/**'
jobs:
test-app:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Java 17
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@v2
- name: Test app
run: ./gradlew test
- name: Get coverage
if: always()
run: ./gradlew jacocoTestReport
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: ${{ github.workspace }}/build/
- name: Publish code coverage report as PR comment
uses: madrapps/[email protected]
if: always()
with:
paths: |
${{ github.workspace }}/build/reports/xml/jacoco.xml
token: ${{ secrets.GITHUB_TOKEN }}
min-coverage-overall: 80
min-coverage-changed-files: 80
title: Coverage Report