From 21017a54e2d6567173378a69ca6b14c7ed27de8a Mon Sep 17 00:00:00 2001
From: Tom Winter <tom@aam-digital.com>
Date: Thu, 11 Apr 2024 09:02:36 +0200
Subject: [PATCH] ci: add codeclimate coverage action

---
 .github/workflows/aam-backend-service-analyse.yml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/.github/workflows/aam-backend-service-analyse.yml b/.github/workflows/aam-backend-service-analyse.yml
index badc1c8..20b7d9f 100644
--- a/.github/workflows/aam-backend-service-analyse.yml
+++ b/.github/workflows/aam-backend-service-analyse.yml
@@ -47,3 +47,10 @@ jobs:
           min-coverage-changed-files: 80
           title: Code Coverage Analyse
           update-comment: true
+
+      - name: Test & publish code coverage
+        uses: paambaati/codeclimate-action@v5.0.0
+        env:
+          CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
+        with:
+          coverageLocations: application/aam-backend-service/build/reports/jacoco/test/jacocoTestReport.xml:jacoco