Skip to content

[maven-release-plugin] prepare release indy-tracking-service-2.0 #172

[maven-release-plugin] prepare release indy-tracking-service-2.0

[maven-release-plugin] prepare release indy-tracking-service-2.0 #172

Workflow file for this run

#
# Copyright (C) 2022-2023 Red Hat, Inc. (https://github.com/Commonjava/indy-tracking-service)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://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.
#
name: Unittests
on:
pull_request:
push:
branches:
- main
- release_*
jobs:
test:
name: Run JDK ${{ matrix.jdk-version }} tests
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
jdk-version: [ "11", "19" ]
steps:
- name: 🧺 Checkout Repository Code
uses: actions/checkout@v3
- name: 🛠 Set up JDK ${{ matrix.jdk-version }}
uses: actions/setup-java@v3
with:
java-version: ${{ matrix.jdk-version }}
distribution: 'temurin'
cache: maven
- name: maven-settings-xml-action
uses: whelk-io/maven-settings-xml-action@v14
with:
repositories: '[{ "id": "sonatype", "url": "https://oss.sonatype.org/content/repositories/snapshots/", "releases": {"enabled": "false"}, "snapshots": {"enabled": "true" }}]'
- name: 🚀 Jacoco Coverage Report for JDK ${{ matrix.jdk-version }}
run: mvn clean test jacoco:report --no-transfer-progress
- name: Run jacoco xml to lcov
run: |
sudo apt install python3
find src/main/java/ > sourcefilelist
python3 jacoco_xml_to_lcov.py indy-tracking-service sourcefilelist < target/jacoco-report/jacoco.xml > lcov.info
- name: Coveralls Parallel
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
flag-name: jdk-${{ matrix.jdk-version }}
parallel: true
path-to-lcov: ./lcov.info
finish-coveralls:
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
path-to-lcov: ./lcov.info