fix criteria search, count, ... #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will build a package using Maven and then publish it to GitHub packages when a release is created | |
# For more information see: https://github.com/actions/setup-java/blob/main/docs/advanced-usage.md#apache-maven-with-a-settings-path | |
name: Maven Package | |
on: [ push, pull_request ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
packages: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up JDK 17 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '17' | |
distribution: 'temurin' | |
- name: Build with Maven | |
run: mvn -B verify --file pom.xml | |
# generates coverage-report.md and publishes as checkrun | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
jacoco-csv-file: java-odoo-rpc-core/target/site/jacoco/jacoco.csv | |
badges-directory: .github/badges | |
generate-coverage-badge: true | |
coverage-badge-filename: rpc-core-jacoco.svg | |
coverage-label: rpc-core | |
colors: '#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44' | |
intervals: 100 80 70 60 50 0 | |
# generates coverage-report.md and publishes as checkrun | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
jacoco-csv-file: java-odoo-json-rpc-client/target/site/jacoco/jacoco.csv | |
badges-directory: .github/badges | |
generate-coverage-badge: true | |
coverage-badge-filename: json-rpc-client-jacoco.svg | |
coverage-label: json-rpc | |
colors: '#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44' | |
intervals: 100 80 70 60 50 0 | |
# generates coverage-report.md and publishes as checkrun | |
- name: Generate JaCoCo Badge | |
uses: cicirello/jacoco-badge-generator@v2 | |
with: | |
jacoco-csv-file: java-odoo-xml-rpc-core/target/site/jacoco/jacoco.csv | |
badges-directory: .github/badges | |
generate-coverage-badge: true | |
coverage-badge-filename: xml-rpc-core-jacoco.svg | |
coverage-label: xml-rpc | |
colors: '#4c1 #97ca00 #a4a61d #dfb317 #fe7d37 #e05d44' | |
intervals: 100 80 70 60 50 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 }} |