Skip to content

Commit 93450e3

Browse files
BE-819: Fixed cache and warning JDK 11 is deprecated
1 parent 377b194 commit 93450e3

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.gflows/libs/job_scan_code.lib.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@
77
- uses: actions/checkout@v3
88
with:
99
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
10+
- name: Set up Java 17
11+
uses: actions/setup-java@v3
12+
with:
13+
java-version: 17
14+
distribution: adopt
1015
- name: downcase GITHUB_REPOSITORY_OWNER
1116
run: |
1217
echo "GITHUB_REPOSITORY_OWNER_DOWNCASE=${GITHUB_REPOSITORY_OWNER,,}" >>${GITHUB_ENV}
@@ -19,5 +24,6 @@
1924
env:
2025
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
2126
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
27+
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
2228
#@ end
23-
---
29+
---

.gflows/libs/job_scan_code_net.lib.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,19 @@
1919
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
22+
- name: Set up Java 17
23+
uses: actions/setup-java@v3
24+
with:
25+
java-version: 17
26+
distribution: adopt
2227
- name: Add GitHub Packages to NuGet config
2328
env:
2429
GH_ACCOUNT: ${{ secrets.PAT_USER_READ_PACKAGES }}
2530
GH_TOKEN: ${{ secrets.PAT_READ_PACKAGES }}
2631
run: |
2732
dotnet nuget update source github --username ${GH_ACCOUNT} --password ${GH_TOKEN} --store-password-in-clear-text
2833
- name: Scan
29-
uses: CoverGo/dotnet-parallel-sonar-scan@v1
34+
uses: CoverGo/dotnet-parallel-sonar-scan@v1.0.1
3035
with:
3136
test-result-artifacts: #@ ",".join(test_result_artifacts)
3237
#@ if hasattr(scan_code_net,"sonar") :
@@ -63,6 +68,7 @@
6368
#@ end
6469
env:
6570
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
71+
JAVA_HOME: /usr/lib/jvm/java-17-openjdk-amd64
6672
#@ end
6773
---
6874
#@ def generate_scan_code_net_job(scan_code_net, sections):

0 commit comments

Comments
 (0)