Using GitHub Actions to Build a Java Project With Pull Request Coverage Commenting and Coverage Badges

This page summarizes the projects mentioned and recommended in the original post on dev.to

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • jacoco-badge-generator

    Coverage badges, and pull request coverage checks, from JaCoCo reports in GitHub Actions

  • The jacoco-badge-generator generates badges, but does not commit them. In this step, I just use a simple shell script to commit and push the badges. This step is conditional and runs only if the event that started the workflow is not a pull request (see the if: ${{ github.event_name != 'pull_request' }}). In other words, it runs on push and workflow_dispatch events. The coverage badges should be consistent with the state of the default branch, so committing badges that correspond to the coverage of a pull request that may or may not be merged doesn't make sense. If it is merged, the push event will then cause the workflow to run again, at which point the coverage badges will be committed. This step begins by changing the current directory to the directory where the badges branch was checked out. And it commits and pushes only if an svg or json file changed. The badges are SVGs, and recall the earlier step where I configured the jacoco-badge-generator to additionally generate a simple JSON file containing the coverage percentages.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • jacoco-badge-generator 2.11.0 Released

    1 project | dev.to | 17 Sep 2023
  • jacoco-badge-generator 2.10.0 Released

    1 project | dev.to | 4 Sep 2023
  • JaCoCo Coverage Badges for Multi-Module Projects in GitHub Actions

    1 project | dev.to | 25 May 2023
  • How to Write to Workflow Job Summary from a GitHub Action

    1 project | dev.to | 21 Dec 2022
  • The jacoco-badge-generator GitHub Action is now also available as a CLI tool from PyPI

    3 projects | dev.to | 8 Jul 2022