Skip to content

Commit 1821ac7

Browse files
committed
Upgrade official GitHub actions to v4
Remove dorny/test-reporter since it does not support the artifact v4 actions dorny/test-reporter#363
1 parent a3afb29 commit 1821ac7

File tree

1 file changed

+9
-16
lines changed

1 file changed

+9
-16
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ jobs:
2323
name: Run tests and create NuGet package
2424
steps:
2525
- name: Checkout git repository
26-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
2727
with:
2828
fetch-depth: 0
2929
- name: Install .NET SDK
30-
uses: actions/setup-dotnet@v3
30+
uses: actions/setup-dotnet@v4
3131
- name: Retrieve cached NuGet packages
32-
uses: actions/cache@v3
32+
uses: actions/cache@v4
3333
with:
3434
path: ~/.nuget/packages
3535
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -42,24 +42,17 @@ jobs:
4242
- name: Run tests
4343
run: dotnet test --no-build
4444
- name: Upload received files from failing tests
45-
uses: actions/upload-artifact@v3
45+
uses: actions/upload-artifact@v4
4646
if: failure()
4747
with:
4848
name: Received-${{ runner.os }}
4949
path: "**/*.received.*"
5050
- name: Upload test results
51-
uses: actions/upload-artifact@v3
51+
uses: actions/upload-artifact@v4
5252
if: always()
5353
with:
5454
name: TestResults (${{ runner.os }})
5555
path: TestResults-*.html
56-
- name: Test Report
57-
uses: dorny/test-reporter@v1
58-
if: always()
59-
with:
60-
name: Test Results (${{ runner.os }})
61-
path: TestResults-*.trx
62-
reporter: dotnet-trx
6356
- name: Upload coverage report to Codecov
6457
if: matrix.os == 'ubuntu-latest'
6558
uses: codecov/codecov-action@v3
@@ -77,7 +70,7 @@ jobs:
7770
run: dotnet pack --no-build --output .
7871
- name: Upload NuGet package artifact
7972
if: matrix.os == 'ubuntu-latest'
80-
uses: actions/upload-artifact@v3
73+
uses: actions/upload-artifact@v4
8174
with:
8275
name: NuGet package
8376
path: "*.nupkg"
@@ -95,7 +88,7 @@ jobs:
9588
git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
9689
- name: Upload release notes
9790
if: matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
98-
uses: actions/upload-artifact@v3
91+
uses: actions/upload-artifact@v4
9992
with:
10093
name: Release Notes
10194
path: ReleaseNotes.md
@@ -108,11 +101,11 @@ jobs:
108101
name: Publish NuGet package and create GitHub release
109102
steps:
110103
- name: Download NuGet package artifact
111-
uses: actions/download-artifact@v3
104+
uses: actions/download-artifact@v4
112105
with:
113106
name: NuGet package
114107
- name: Download release notes artifact
115-
uses: actions/download-artifact@v3
108+
uses: actions/download-artifact@v4
116109
with:
117110
name: Release Notes
118111
- name: Create GitHub Release

0 commit comments

Comments
 (0)