Skip to content

Commit

Permalink
Update github actions (#1022)
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-tay authored Apr 16, 2024
1 parent a66647d commit 0a350ff
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,24 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ 8, 11, 17, 20 ]
java: [ 8, 11, 17, 21 ]
name: Java ${{ matrix.java }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup JDK
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
cache: 'maven'

- name: Build with Maven
run: mvn clean verify
run: mvn --batch-mode --update-snapshots verify -Dstyle.color=always

- name: Upload coverage to Codecov
if: matrix.java == '8'
uses: codecov/codecov-action@v3.1.1
uses: codecov/codecov-action@v4
with:
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

0 comments on commit 0a350ff

Please sign in to comment.