Skip to content

Commit

Permalink
Upgrade official GitHub actions to v4
Browse files Browse the repository at this point in the history
Remove dorny/test-reporter since it does not support the artifact v4 actions

dorny/test-reporter#363
  • Loading branch information
0xced committed Jul 8, 2024
1 parent a3afb29 commit 1821ac7
Showing 1 changed file with 9 additions and 16 deletions.
25 changes: 9 additions & 16 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ jobs:
name: Run tests and create NuGet package
steps:
- name: Checkout git repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install .NET SDK
uses: actions/setup-dotnet@v3
uses: actions/setup-dotnet@v4
- name: Retrieve cached NuGet packages
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
Expand All @@ -42,24 +42,17 @@ jobs:
- name: Run tests
run: dotnet test --no-build
- name: Upload received files from failing tests
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: failure()
with:
name: Received-${{ runner.os }}
path: "**/*.received.*"
- name: Upload test results
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: always()
with:
name: TestResults (${{ runner.os }})
path: TestResults-*.html
- name: Test Report
uses: dorny/test-reporter@v1
if: always()
with:
name: Test Results (${{ runner.os }})
path: TestResults-*.trx
reporter: dotnet-trx
- name: Upload coverage report to Codecov
if: matrix.os == 'ubuntu-latest'
uses: codecov/codecov-action@v3
Expand All @@ -77,7 +70,7 @@ jobs:
run: dotnet pack --no-build --output .
- name: Upload NuGet package artifact
if: matrix.os == 'ubuntu-latest'
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: NuGet package
path: "*.nupkg"
Expand All @@ -95,7 +88,7 @@ jobs:
git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
- name: Upload release notes
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: Release Notes
path: ReleaseNotes.md
Expand All @@ -108,11 +101,11 @@ jobs:
name: Publish NuGet package and create GitHub release
steps:
- name: Download NuGet package artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: NuGet package
- name: Download release notes artifact
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: Release Notes
- name: Create GitHub Release
Expand Down

0 comments on commit 1821ac7

Please sign in to comment.