Skip to content

Commit

Permalink
ci: upgrade github actions (#170)
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeDombo authored Apr 4, 2024
1 parent f37458b commit ef62aa4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,17 @@ jobs:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required by wagoid/commitlint-github-action to validate range of commits instead of just the latest one
- uses: wagoid/commitlint-github-action@v4
- uses: wagoid/commitlint-github-action@v6
if: matrix.os == 'ubuntu-latest'
- name: Set up JDK 1.8
uses: actions/setup-java@v1
uses: actions/setup-java@v4
with:
java-version: 1.8
distribution: corretto
java-version: 8
cache: maven
- run: rm -rf /tmp/*
continue-on-error: true
- name: Build with Maven (not Windows)
Expand All @@ -37,13 +39,13 @@ jobs:
shell: cmd
if: matrix.os == 'windows-latest'
- 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: matrix.os == 'ubuntu-latest'
with:
name: Coverage Report ${{ matrix.os }}
Expand All @@ -53,7 +55,7 @@ jobs:
run: python3 .github/scripts/cover2cover.py target/jacoco-report/jacoco.xml src/main/java > target/jacoco-report/cobertura.xml
- name: cobertura-report-unit-test
if: matrix.os == 'ubuntu-latest'
uses: shaguptashaikh/cobertura-action@master
uses: 5monkeys/cobertura-action@v14
continue-on-error: true
with:
# The GITHUB_TOKEN for this repo
Expand Down

0 comments on commit ef62aa4

Please sign in to comment.