Skip to content

Commit

Permalink
ci: upgrade github actions (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo authored Apr 4, 2024
1 parent b982d65 commit dcded41
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
java: ['8', '11']
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: wagoid/commitlint-github-action@v4
Expand All @@ -33,21 +33,21 @@ jobs:
sudo -E mvn -ntp -U clean verify
sudo chown -R runner target
- name: Upload Failed Test Report
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
if: failure()
with:
name: Failed Test Report
path: target/surefire-reports
- name: Upload Coverage
uses: actions/upload-artifact@v1.0.0
uses: actions/upload-artifact@v3
if: always()
with:
name: Coverage Report
path: target/jacoco-report
- name: Convert Jacoco unit test report to Cobertura
run: python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
- name: cobertura-report-unit-test
uses: shaguptashaikh/cobertura-action@master
uses: 5monkeys/cobertura-action@v14
continue-on-error: true
with:
# The GITHUB_TOKEN for this repo
Expand All @@ -66,3 +66,4 @@ jobs:
show_class_names: true
# Use a unique name for the report and comment
report_name: Unit Tests Coverage Report
only_changed_files: true

0 comments on commit dcded41

Please sign in to comment.