2121 name : 🛠 Build, test and pack
2222 steps :
2323 - name : 🧑💻 Checkout git repository
24- uses : actions/checkout@v5
24+ uses : actions/checkout@v6
2525 with :
2626 fetch-depth : 0
2727 - name : 🏎 Optimize Windows runner
3434 - name : ℹ️ Show .NET info
3535 run : dotnet --info
3636 - name : 💾 Retrieve cached NuGet packages
37- uses : actions/cache@v4
37+ uses : actions/cache@v5
3838 with :
3939 path : ${{ env.NUGET_PACKAGES || '~/.nuget/packages' }}
4040 key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -47,35 +47,35 @@ jobs:
4747 - name : 🧪 Run tests
4848 run : dotnet test --no-build
4949 - name : 📤 Upload received files from failing tests
50- uses : actions/upload-artifact@v5
50+ uses : actions/upload-artifact@v7
5151 if : failure()
5252 with :
5353 name : Received-${{ runner.os }}
5454 path : " **/*.received.*"
5555 - name : 📤 Upload test results
56- uses : actions/upload-artifact@v5
56+ uses : actions/upload-artifact@v7
5757 if : always()
5858 with :
5959 name : TestResults-${{ runner.os }}.trx
6060 path : " *.trx"
6161 - name : 📊 Test Report
62- uses : dorny/test-reporter@v2
62+ uses : dorny/test-reporter@v3
6363 if : always()
6464 with :
6565 name : 🚦 Test Results
6666 path : ' *.trx'
6767 reporter : dotnet-trx
6868 - name : 📤 Upload coverage report
6969 if : matrix.os == 'ubuntu-latest'
70- uses : actions/upload-artifact@v5
70+ uses : actions/upload-artifact@v7
7171 with :
7272 name : Coverage Report
7373 path : coverage
7474 - name : ☂️ Upload coverage report to Codecov
7575 env :
7676 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
7777 if : matrix.os == 'ubuntu-latest' && env.CODECOV_TOKEN != ''
78- uses : codecov/codecov-action@v5
78+ uses : codecov/codecov-action@v6
7979 with :
8080 files : coverage/*/coverage.cobertura.xml
8181 token : ${{ env.CODECOV_TOKEN }}
9191 run : dotnet pack --no-build --output .
9292 - name : 📤 Upload NuGet package artifact
9393 if : matrix.os == 'ubuntu-latest'
94- uses : actions/upload-artifact@v5
94+ uses : actions/upload-artifact@v7
9595 with :
9696 name : NuGet package
9797 path : " *.nupkg"
@@ -109,7 +109,7 @@ jobs:
109109 git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
110110 - name : 📤 Upload release notes
111111 if : matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
112- uses : actions/upload-artifact@v5
112+ uses : actions/upload-artifact@v7
113113 with :
114114 name : Release Notes
115115 path : ReleaseNotes.md
@@ -123,15 +123,15 @@ jobs:
123123 name : 🐿 Publish
124124 steps :
125125 - name : 📥 Download NuGet package artifact
126- uses : actions/download-artifact@v5
126+ uses : actions/download-artifact@v8
127127 with :
128128 name : NuGet package
129129 - name : 📥 Download release notes artifact
130- uses : actions/download-artifact@v5
130+ uses : actions/download-artifact@v8
131131 with :
132132 name : Release Notes
133133 - name : 🚢 Create GitHub Release
134- uses : softprops/action-gh-release@v2
134+ uses : softprops/action-gh-release@v3
135135 with :
136136 name : Version ${{ github.ref_name }}
137137 body_path : ReleaseNotes.md
0 commit comments