diff --git a/.github/workflows/bluecave.yml b/.github/workflows/bluecave.yml new file mode 100644 index 0000000000..1aeef49a61 --- /dev/null +++ b/.github/workflows/bluecave.yml @@ -0,0 +1,44 @@ +name: Blue Cave + +on: + push: + branches: + - master + pull_request: + +permissions: + contents: read + +jobs: + bluecave-report: + runs-on: ubuntu-22.04 + if: (github.actor != 'dependabot[bot]') + permissions: + contents: read + steps: + - name: Setup Bolt + uses: koalalab-inc/bolt@v1 + + - uses: actions/checkout@v2 + - uses: actions/setup-java@v2 + with: + distribution: "adopt" + java-version: "8" + architecture: x64 + - name: Setup Protoc + uses: arduino/setup-protoc@v3 + with: + version: "29.2" + - uses: bufbuild/buf-action@v1 + with: + setup_only: true + + - name: Run Tests + run: mvn --no-transfer-progress -B test + + - name: Analyze and Report Coverage to Blue Cave + continue-on-error: true + env: + BLUECAVE_TOKEN: ${{ secrets.BLUECAVE_TOKEN }} + PR_SHA: ${{ github.event.pull_request.head.sha }} + run: mvn -B bluecave:report diff --git a/README.md b/README.md index 7325989549..6754c7ad58 100644 --- a/README.md +++ b/README.md @@ -15,7 +15,11 @@
- + + + + + diff --git a/pom.xml b/pom.xml index f25cfc1e2b..3a45bfc812 100644 --- a/pom.xml +++ b/pom.xml @@ -42,7 +42,11 @@ - + + io.bluecave + bluecave-maven-plugin + 0.1.3 + org.codehaus.mojo flatten-maven-plugin @@ -94,8 +98,8 @@ report - prepare-package - + prepare-package + report