Skip to content

README: list existing algorithms interfaces #174

README: list existing algorithms interfaces

README: list existing algorithms interfaces #174

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@v3
- name: Set up JDK 11
uses: actions/setup-java@v3
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 '-Dasserts.enable=false' 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-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
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-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@v3
with:
name: jgalgo-core-jacoco-coverage-report
path: artifacts/jgalgo-core.tar.gz
- name: Upload jgalgo-io artifacts
uses: actions/upload-artifact@v3
with:
name: jgalgo-io-jacoco-coverage-report
path: artifacts/jgalgo-io.tar.gz
- name: Upload jgalgo-example artifacts
uses: actions/upload-artifact@v3
with:
name: jgalgo-example-jacoco-coverage-report
path: artifacts/jgalgo-example.tar.gz
- name: Upload jgalgo-bench artifacts
uses: actions/upload-artifact@v3
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.4.1
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: coverage
clean: true
folder: coverage
target-folder: .