Skip to content

Commit

Permalink
set java dist
Browse files Browse the repository at this point in the history
  • Loading branch information
f2calv committed Jun 23, 2024
1 parent 32a24ea commit 3168d6b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ inputs:
SONAR_HOST_URL:
required: false
default: https://sonarcloud.io
java-version:
required: false
default: 1.17
java-distribution:
required: false
default: microsoft
BuildConfiguration:
description: i.e. Debug or Release
default: Release
Expand All @@ -24,19 +30,20 @@ runs:
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: 1.17
java-version: ${{ inputs.java-version }}
distribution: ${{ inputs.java-distribution }}
- uses: actions/checkout@v4
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Cache SonarQube packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~\.sonar\cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache SonarQube scanner
id: cache-sonar-scanner
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: .\.sonar\scanner
key: ${{ runner.os }}-sonar-scanner
Expand Down

0 comments on commit 3168d6b

Please sign in to comment.