Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
lyozi committed May 17, 2024
1 parent d361db0 commit 97ff20f
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 @@ -20,13 +20,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
- uses: actions/checkout@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: 21
distribution: 'adopt' # Alternative distribution options are available.

- name: Cache SonarCloud packages
uses: actions/cache@v4
Expand All @@ -43,7 +45,7 @@ jobs:
restore-keys: ${{ runner.os }}-m2

- name: Build and analyze
uses: coactions/setup-xvfb@v1.0.1
uses: coactions/setup-xvfb@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit 97ff20f

Please sign in to comment.