@@ -23,13 +23,13 @@ jobs:
23
23
name : Run tests and create NuGet package
24
24
steps :
25
25
- name : Checkout git repository
26
- uses : actions/checkout@v3
26
+ uses : actions/checkout@v4
27
27
with :
28
28
fetch-depth : 0
29
29
- name : Install .NET SDK
30
- uses : actions/setup-dotnet@v3
30
+ uses : actions/setup-dotnet@v4
31
31
- name : Retrieve cached NuGet packages
32
- uses : actions/cache@v3
32
+ uses : actions/cache@v4
33
33
with :
34
34
path : ~/.nuget/packages
35
35
key : ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
@@ -42,24 +42,17 @@ jobs:
42
42
- name : Run tests
43
43
run : dotnet test --no-build
44
44
- name : Upload received files from failing tests
45
- uses : actions/upload-artifact@v3
45
+ uses : actions/upload-artifact@v4
46
46
if : failure()
47
47
with :
48
48
name : Received-${{ runner.os }}
49
49
path : " **/*.received.*"
50
50
- name : Upload test results
51
- uses : actions/upload-artifact@v3
51
+ uses : actions/upload-artifact@v4
52
52
if : always()
53
53
with :
54
54
name : TestResults (${{ runner.os }})
55
55
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
63
56
- name : Upload coverage report to Codecov
64
57
if : matrix.os == 'ubuntu-latest'
65
58
uses : codecov/codecov-action@v3
77
70
run : dotnet pack --no-build --output .
78
71
- name : Upload NuGet package artifact
79
72
if : matrix.os == 'ubuntu-latest'
80
- uses : actions/upload-artifact@v3
73
+ uses : actions/upload-artifact@v4
81
74
with :
82
75
name : NuGet package
83
76
path : " *.nupkg"
95
88
git tag --list ${{ github.ref_name }} --format='%(contents)' > ReleaseNotes.md
96
89
- name : Upload release notes
97
90
if : matrix.os == 'ubuntu-latest' && startsWith(github.ref, 'refs/tags/')
98
- uses : actions/upload-artifact@v3
91
+ uses : actions/upload-artifact@v4
99
92
with :
100
93
name : Release Notes
101
94
path : ReleaseNotes.md
@@ -108,11 +101,11 @@ jobs:
108
101
name : Publish NuGet package and create GitHub release
109
102
steps :
110
103
- name : Download NuGet package artifact
111
- uses : actions/download-artifact@v3
104
+ uses : actions/download-artifact@v4
112
105
with :
113
106
name : NuGet package
114
107
- name : Download release notes artifact
115
- uses : actions/download-artifact@v3
108
+ uses : actions/download-artifact@v4
116
109
with :
117
110
name : Release Notes
118
111
- name : Create GitHub Release
0 commit comments