Skip to content

build(deps-dev): bump commons-io:commons-io from 2.11.0 to 2.14.0 #144

build(deps-dev): bump commons-io:commons-io from 2.11.0 to 2.14.0

build(deps-dev): bump commons-io:commons-io from 2.11.0 to 2.14.0 #144

Workflow file for this run

name: Java CI
on:
push:
branches:
- main
pull_request:
branches: '*'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: ['8', '11']
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v6
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: corretto
java-version: ${{ matrix.java }}
- run: rm -rf /tmp/*
continue-on-error: true
- name: Install softhsm2
run: sudo apt-get install -y softhsm2
- name: Build with Maven
env:
AWS_REGION: us-west-2
run: |
sudo -E mvn -ntp -U clean verify
sudo chown -R runner target
- name: Upload Failed Test Report
uses: actions/upload-artifact@v3
if: failure()
with:
name: Failed Test Report
path: target/surefire-reports
- name: Upload Coverage
uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage Report
path: target/jacoco-report
- name: Convert Jacoco unit test report to Cobertura
run: python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
- name: cobertura-report-unit-test
uses: 5monkeys/cobertura-action@v14
continue-on-error: true
with:
# The GITHUB_TOKEN for this repo
repo_token: ${{ github.token }}
# Path to the cobertura file.
path: target/jacoco-report/cobertura.xml
# If files with 100% should be skipped from report.
skip_covered: false
# Minimum allowed coverage percentage as an integer.
minimum_coverage: 60
# Show line rate as specific column.
show_line: true
# Show branch rate as specific column.
show_branch: true
# Use class names instead of the filename
show_class_names: true
# Use a unique name for the report and comment
report_name: Unit Tests Coverage Report
only_changed_files: true