Skip to content

build(deps): bump com.jayway.jsonpath:json-path from 2.6.0 to 2.9.0 (#6) #12

build(deps): bump com.jayway.jsonpath:json-path from 2.6.0 to 2.9.0 (#6)

build(deps): bump com.jayway.jsonpath:json-path from 2.6.0 to 2.9.0 (#6) #12

name: build
on:
workflow_dispatch:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up the Java JDK
uses: actions/setup-java@v2
with:
java-version: '11'
distribution: 'adopt'
- name: Build with Maven
run: mvn -B test
- name: Generate JaCoCo Badge
id: jacoco
uses: cicirello/jacoco-badge-generator@v2
- name: Log coverage percentage
run: |
echo "coverage = ${{ steps.jacoco.outputs.coverage }}"
echo "branch coverage = ${{ steps.jacoco.outputs.branches }}"
- name: Commit the badge (if it changed)
run: |
if [[ `git status --porcelain` ]]; then
git config --global user.name 'yeshan333'
git config --global user.email '[email protected]'
git add -A
git commit -m "docs: autogenerated JaCoCo coverage badge"
git push
fi
- name: Upload JaCoCo coverage report
uses: actions/upload-artifact@v2
with:
name: jacoco-report
path: target/site/jacoco/
- name: codecov
uses: codecov/codecov-action@v3
with:
directory: target/site/jacoco/