You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by ni...@apache.org on 2025/09/07 20:45:42 UTC

(lucenenet) branch ci/cache-nuget-packages updated: .github/workflows/sonar.yml: Bumped action versions - setup-dotnet@v5, setup-java@v5, checkout@v5, cache@v4. Also changed shell to pwsh rather than powershell, where specified.

This is an automated email from the ASF dual-hosted git repository.

nightowl888 pushed a commit to branch ci/cache-nuget-packages
in repository https://gitbox.apache.org/repos/asf/lucenenet.git


The following commit(s) were added to refs/heads/ci/cache-nuget-packages by this push:
     new 8553c9e26 .github/workflows/sonar.yml: Bumped action versions - setup-dotnet@v5, setup-java@v5, checkout@v5, cache@v4. Also changed shell to pwsh rather than powershell, where specified.
8553c9e26 is described below

commit 8553c9e26d386395cdb647ac9563fcb1c8f03240
Author: Shad Storhaug <sh...@shadstorhaug.com>
AuthorDate: Mon Sep 8 03:45:23 2025 +0700

    .github/workflows/sonar.yml: Bumped action versions - setup-dotnet@v5, setup-java@v5, checkout@v5, cache@v4. Also changed shell to pwsh rather than powershell, where specified.
---
 .github/workflows/sonar.yml | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/sonar.yml b/.github/workflows/sonar.yml
index 8c3a6b049..812ce84d0 100644
--- a/.github/workflows/sonar.yml
+++ b/.github/workflows/sonar.yml
@@ -47,33 +47,33 @@ jobs:
       BUILD_FOR_ALL_TEST_TARGET_FRAMEWORKS: 'true'
     steps:
       - name: Setup .NET 8 SDK
-        uses: actions/setup-dotnet@v3
+        uses: actions/setup-dotnet@v5
         with:
           dotnet-version: '8.0.x'
       - name: Set up JDK 21
-        uses: actions/setup-java@v3
+        uses: actions/setup-java@v5
         with:
           distribution: 'zulu'
           java-version: '21'
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v5
         with:
           fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis
       - name: Cache SonarCloud packages
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         with:
           path: ~\.sonar\cache
           key: ${{ runner.os }}-sonar
           restore-keys: ${{ runner.os }}-sonar
       - name: Cache SonarCloud scanner
         id: cache-sonar-scanner
-        uses: actions/cache@v3
+        uses: actions/cache@v4
         with:
           path: .\.sonar\scanner
           key: ${{ runner.os }}-sonar-scanner
           restore-keys: ${{ runner.os }}-sonar-scanner
       - name: Install SonarCloud scanner
         if: steps.cache-sonar-scanner.outputs.cache-hit != 'true'
-        shell: powershell
+        shell: pwsh
         run: |
           $dir = '.\.sonar\scanner'
           if (!(Test-Path $dir)) { New-Item -Path $dir -ItemType Directory }
@@ -93,7 +93,7 @@ jobs:
       - name: Build and analyze
         env:
           GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}  # Needed to get PR information, if any
-        shell: powershell
+        shell: pwsh
         run: |
           .\.sonar\scanner\dotnet-sonarscanner begin /k:"apache_lucenenet" /o:"apache" /d:sonar.token="${{ secrets.SONARCLOUD_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io"
           dotnet build --no-restore /p:TestFrameworks=${{ env.BUILD_FOR_ALL_TEST_TARGET_FRAMEWORKS }}