Skip to content

Commit

Permalink
setup badges
Browse files Browse the repository at this point in the history
  • Loading branch information
pascallibenzi committed Jan 2, 2025
1 parent fd1122a commit 59dd2ce
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/maven-java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
contents: write
packages: write

steps:
Expand Down Expand Up @@ -42,8 +42,8 @@ jobs:
jacoco-csv-file: java-odoo-json-rpc-client/target/site/jacoco/jacoco.csv
badges-directory: .github/badges
generate-coverage-badge: true
coverage-badge-filename: rpc-client-jacoco.svg
coverage-label: rpc-core
coverage-badge-filename: json-rpc-client-jacoco.svg
coverage-label: json-rpc
colors: '#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44'
intervals: 100 90 80 70 60 0

Expand All @@ -55,6 +55,16 @@ jobs:
badges-directory: .github/badges
generate-coverage-badge: true
coverage-badge-filename: xml-rpc-core-jacoco.svg
coverage-label: rpc-core
coverage-label: xml-rpc
colors: '#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44'
intervals: 100 90 80 70 60 0

- name: Commit and push the badge (if it changed)
uses: EndBug/add-and-commit@v9
with:
default_author: github_actions
message: 'commit badges'
add: '*.svg'
author: "GitHub Actions"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

[![Static Badge](https://img.shields.io/badge/maven%20central-0.0.4-green)](https://central.sonatype.com/artifact/ch.helvethink.odoo4java/java-odoo-rpc-parent/0.0.4)

![rpc-core-cov](.github/badges/rpc-core-jacoco.svg)
![xml-rpc-cov](.github/badges/xml-rpc-core-jacoco.svg)
![json-rpc-cov](.github/badges/json-rpc-client-jacoco.svg)

The `Java Odoo RPC` project provides tooling and abstraction for interactions with your Odoo RPC API (JSON and XML).\
First, it provides the [java-odoo-xml-rpc-core](java-odoo-xml-rpc-core/README.MD) library which provides you some tooling for the serialization of
objects returned by Odoo using the XML-RPC external API.\
Expand Down

0 comments on commit 59dd2ce

Please sign in to comment.