From fa958e979e9016a5818dbef3f09518e14d94333c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9rald=20Barr=C3=A9?= Date: Thu, 14 Dec 2023 19:03:31 -0500 Subject: [PATCH] Update dependencies --- .github/workflows/ci.yml | 26 +++++++++++++------------- .github/workflows/close-issues.yml | 4 ++-- Directory.Build.props | 4 ++-- 3 files changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2b7c40b5f..940e146cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,7 +31,7 @@ jobs: package_version: ${{ steps.compute-version.outputs.package_version }} steps: - id: compute-version - name: Compute version + name: Compute version run: | $(Invoke-WebRequest "https://www.nuget.org/api/v2/package/Meziantou.Analyzer/").BaseResponse.RequestMessage.RequestUri -match "meziantou\.analyzer\.2\.0\.([0-9]+).nupkg$" $NewVersion = "2.0.$([int]$Matches.1 + 1)" @@ -40,7 +40,7 @@ jobs: } Write-Host "New version: $NewVersion" "package_version=$NewVersion" >> $env:GITHUB_OUTPUT - + create_nuget: runs-on: ubuntu-latest needs: [ compute_package_version ] @@ -49,16 +49,16 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 - run: dotnet run --project src/ListDotNetTypes/ListDotNetTypes.csproj -- src/Meziantou.Analyzer/Resources/ - + - run: dotnet build src/Meziantou.Analyzer/Meziantou.Analyzer.csproj --configuration Release /p:RoslynVersion=roslyn3.8 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer/Meziantou.Analyzer.csproj --configuration Release /p:RoslynVersion=roslyn4.2 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer/Meziantou.Analyzer.csproj --configuration Release /p:RoslynVersion=roslyn4.4 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer/Meziantou.Analyzer.csproj --configuration Release /p:RoslynVersion=roslyn4.6 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer/Meziantou.Analyzer.csproj --configuration Release /p:RoslynVersion=roslyn4.8 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - + - run: dotnet build src/Meziantou.Analyzer.CodeFixers/Meziantou.Analyzer.CodeFixers.csproj --configuration Release /p:RoslynVersion=roslyn3.8 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer.CodeFixers/Meziantou.Analyzer.CodeFixers.csproj --configuration Release /p:RoslynVersion=roslyn4.2 /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet build src/Meziantou.Analyzer.CodeFixers/Meziantou.Analyzer.CodeFixers.csproj --configuration Release /p:RoslynVersion=roslyn4.4 /p:Version=${{ needs.compute_package_version.outputs.package_version }} @@ -69,7 +69,7 @@ jobs: - run: dotnet pack src/Meziantou.Analyzer.pack.csproj --configuration Release --no-build /p:Version=${{ needs.compute_package_version.outputs.package_version }} - run: dotnet pack src/Meziantou.Analyzer.Annotations/Meziantou.Analyzer.Annotations.csproj --configuration Release - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: nuget if-no-files-found: error @@ -82,8 +82,8 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup .NET Core (global.json) - uses: actions/setup-dotnet@v3 - - uses: actions/download-artifact@v3 + uses: actions/setup-dotnet@v4 + - uses: actions/download-artifact@v4 with: name: nuget path: ${{ env.NuGetDirectory }} @@ -115,13 +115,13 @@ jobs: steps: - uses: actions/checkout@v4 - name: Setup .NET Core (global.json) - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 - run: dotnet test --configuration ${{ matrix.configuration }} --logger trx --logger "GitHubActions;report-warnings=false" --collect:"XPlat Code Coverage" --blame-hang --blame-hang-timeout 2min --results-directory "${{ env.TestResultsDirectory }}" /p:WarningsAsErrors=true /p:RoslynVersion=${{ matrix.roslyn-version}} name: Run tests - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 if: always() with: - name: test-results-${{ matrix.runs-on }}-${{ matrix.configuration }} + name: test-results-${{ matrix.runs-on }}-${{ matrix.roslyn-version }}-${{ matrix.configuration }} if-no-files-found: error retention-days: 3 path: ${{ env.TestResultsDirectory }}/**/* @@ -133,12 +133,12 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 - - uses: actions/download-artifact@v3 + - uses: actions/download-artifact@v4 with: name: nuget path: ${{ env.NuGetDirectory }} - name: Setup .NET Core - uses: actions/setup-dotnet@v3 + uses: actions/setup-dotnet@v4 - run: | Write-Host "Current ref: $env:GITHUB_REF" Write-Host "Searching nupkg in folder: ${{ env.NuGetDirectory }}" diff --git a/.github/workflows/close-issues.yml b/.github/workflows/close-issues.yml index 651f2d665..febfae15c 100644 --- a/.github/workflows/close-issues.yml +++ b/.github/workflows/close-issues.yml @@ -1,6 +1,6 @@ name: Close inactive issues on: - workflow_dispatch: + workflow_dispatch: schedule: - cron: "30 1 * * *" @@ -11,7 +11,7 @@ jobs: issues: write pull-requests: write steps: - - uses: actions/stale@v8 + - uses: actions/stale@v9 with: days-before-issue-stale: 60 days-before-issue-close: 14 diff --git a/Directory.Build.props b/Directory.Build.props index 7b27c02f8..8d05a1201 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -34,11 +34,11 @@ - + all runtime; build; native; contentfiles; analyzers - + all runtime; build; native; contentfiles; analyzers