Skip to content

Merge pull request #104 from bernardladenthin/dependabot/maven/org.ap… #342

Merge pull request #104 from bernardladenthin/dependabot/maven/org.ap…

Merge pull request #104 from bernardladenthin/dependabot/maven/org.ap… #342

Workflow file for this run

name: code coverage
on:
push:
branches:
- main
- 'releases/*'
pull_request:
branches:
- '*'
env:
javaversion: '21'
javadistribution: 'temurin'
jobs:
build:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ env.javaversion }} ${{ env.javadistribution }}
uses: actions/setup-java@v4
with:
java-version: ${{ env.javaversion }}
distribution: ${{ env.javadistribution }}
cache: maven
- name: Build with Maven
run: mvn -B "-Dnet.ladenthin.bitcoinaddressfinder.disableLMDBTest=true" --update-snapshots test package jacoco:report --file pom.xml
- name: Upload Surefire Reports and JVM Crash Logs
if: always()
uses: actions/upload-artifact@v4
with:
name: surefire-and-crash-logs
path: |
target/surefire-reports/**
hs_err_pid*.log
# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@0b9cd8f382c5d2016fa77ebf8a0f2804452fefef
# https://github.com/marketplace/actions/coveralls-github-action
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.COVERALLS_TOKEN }}
file: target/site/jacoco/jacoco.xml
format: jacoco
# https://github.com/codecov/codecov-action
- name: Codecov GitHub Action
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}