Skip to content

Bump spotbugs to 4.8.6.0 #307

Bump spotbugs to 4.8.6.0

Bump spotbugs to 4.8.6.0 #307

Workflow file for this run

name: Coverage
on:
push:
branches:
- master
jobs:
coverage_report:
runs-on: ubuntu-latest
steps:
- name: Get repo
uses: actions/checkout@v4
- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: 11
distribution: "adopt"
- name: Build with Maven
run: mvn --batch-mode --update-snapshots package '-Dmaven.test.skip'
- name: Run JUnit Tests with Jacoco coverage
run: mvn --batch-mode test jacoco:report
- name: Aggregate Reports from Sub Modules
run: |
mkdir coverage
mv jgalgo-core/target/site/jacoco coverage/jgalgo-core
mv jgalgo-io/target/site/jacoco coverage/jgalgo-io
mv jgalgo-adapt-guava/target/site/jacoco coverage/jgalgo-adapt-guava
mv jgalgo-adapt-jgrapht/target/site/jacoco coverage/jgalgo-adapt-jgrapht
mv jgalgo-example/target/site/jacoco coverage/jgalgo-example
mv jgalgo-bench/target/site/jacoco coverage/jgalgo-bench
- name: Generate JaCoCo Badge
uses: cicirello/jacoco-badge-generator@v2
with:
jacoco-csv-file: >
coverage/jgalgo-core/jacoco.csv
coverage/jgalgo-io/jacoco.csv
coverage/jgalgo-adapt-guava/jacoco.csv
coverage/jgalgo-adapt-jgrapht/jacoco.csv
coverage/jgalgo-example/jacoco.csv
generate-coverage-badge: true
badges-directory: coverage/badges
- name: Zip coverage artifacts
run: |
mkdir artifacts/
tar -czf artifacts/jgalgo-core.tar.gz coverage/jgalgo-core/
tar -czf artifacts/jgalgo-io.tar.gz coverage/jgalgo-io/
tar -czf artifacts/jgalgo-adapt-guava.tar.gz coverage/jgalgo-adapt-guava/
tar -czf artifacts/jgalgo-adapt-jgrapht.tar.gz coverage/jgalgo-adapt-jgrapht/
tar -czf artifacts/jgalgo-example.tar.gz coverage/jgalgo-example/
tar -czf artifacts/jgalgo-bench.tar.gz coverage/jgalgo-bench/
- name: Upload jgalgo-core artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-core-jacoco-coverage-report
path: artifacts/jgalgo-core.tar.gz
- name: Upload jgalgo-io artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-io-jacoco-coverage-report
path: artifacts/jgalgo-io.tar.gz
- name: Upload jgalgo-adapt-guava artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-adapt-guava-jacoco-coverage-report
path: artifacts/jgalgo-adapt-guava.tar.gz
- name: Upload jgalgo-adapt-jgrapht artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-adapt-jgrapht-jacoco-coverage-report
path: artifacts/jgalgo-adapt-jgrapht.tar.gz
- name: Upload jgalgo-example artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-example-jacoco-coverage-report
path: artifacts/jgalgo-example.tar.gz
- name: Upload jgalgo-bench artifacts
uses: actions/upload-artifact@v4
with:
name: jgalgo-bench-jacoco-coverage-report
path: artifacts/jgalgo-bench.tar.gz
- name: Publish Jacoco Coverage Report
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: coverage
clean: true
folder: coverage
target-folder: .