Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/bluecave.yml
Original file line number Diff line number Diff line change
@@ -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
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,11 @@
<br/>
<a href="https://github.com/akto-api-security/akto/commits/master" _target="blank">
<img src="https://img.shields.io/github/commit-activity/m/akto-api-security/akto?label=commits&logo=github"/>
</a>
</a>

<a href="https://cloud.bluecave.io/projects/gh/akto-api-security/akto" target="_blank">
<img src="https://cloud.bluecave.io/badges/gh/akto-api-security/akto/analysis.svg"/>
</a>

<a href="https://github.com/akto-api-security/akto/releases" _target="blank">
<img src="https://img.shields.io/github/release-date/akto-api-security/akto?label=latest%20release&logo=docker"/>
Expand Down
10 changes: 7 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,11 @@

<build>
<plugins>

<plugin>
<groupId>io.bluecave</groupId>
<artifactId>bluecave-maven-plugin</artifactId>
<version>0.1.3</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>flatten-maven-plugin</artifactId>
Expand Down Expand Up @@ -94,8 +98,8 @@
</execution>
<execution>
<id>report</id>
<phase>prepare-package</phase>
<goals>
<phase>prepare-package</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
Expand Down
Loading