Skip to content

Commit

Permalink
Integrate Code Climate
Browse files Browse the repository at this point in the history
  • Loading branch information
VenomVendor committed Jun 22, 2024
1 parent 8f710ac commit f32a70e
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 5 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ jobs:
if: always()
run: rm -rvf $HOME/.gradle/caches/modules-2/modules-2.lock

- name: Branch Codecov Coverage
- name: Branch Coverage | Codecov
uses: codecov/codecov-action@v4.0.1
with:
codecov_yml_path: ./codecov.yml
Expand All @@ -103,12 +103,20 @@ jobs:
file: build/reports/jacoco/report.xml
fail_ci_if_error: true

- name: Branch Codacy Coverage
- name: Branch Coverage | Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: build/reports/jacoco/report.xml

- name: Branch Coverage | Codeclimate
uses: paambaati/codeclimate-action@v8.0.0
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_PROJECT_TOKEN }}
JACOCO_SOURCE_PATH: src/main/java
with:
coverageLocations: build/reports/jacoco/report.xml:jacoco

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "CodeQL"
name: "Code Quality"

on:
push:
Expand Down
13 changes: 11 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,20 +40,29 @@ jobs:
if: always()
run: rm -rvf $HOME/.gradle/caches/modules-2/modules-2.lock

- name: Full Codecov Coverage
- name: Full Coverage | Codecov
uses: codecov/codecov-action@v4.0.1
with:
codecov_yml_path: ./codecov.yml
token: ${{ secrets.CODECOV_TOKEN }}
slug: VenomVendor/NullDefense
file: build/reports/jacoco/report.xml

- name: Full Codacy Coverage
- name: Full Coverage | Codacy
uses: codacy/codacy-coverage-reporter-action@v1.3.0
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
coverage-reports: build/reports/jacoco/report.xml

- name: Full Coverage | Codeclimate
uses: paambaati/codeclimate-action@v8.0.0
env:
# Set CC_TEST_REPORTER_ID as secret of your repo
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_PROJECT_TOKEN }}
JACOCO_SOURCE_PATH: src/main/java
with:
coverageLocations: build/reports/jacoco/report.xml:jacoco

- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
Expand Down

0 comments on commit f32a70e

Please sign in to comment.