@@ -19,17 +19,17 @@ jobs:
19
19
fail-fast : false
20
20
matrix :
21
21
os : [ubuntu-latest, windows-latest, macos-latest]
22
- target : [netstandard2.0, netstandard2.1, net6.0]
22
+ target : [netstandard2.0, netstandard2.1, net6.0, net462 ]
23
23
env :
24
24
LIB_PROJ : src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
25
25
steps :
26
- - uses : actions/checkout@v3
26
+ - uses : actions/checkout@v4
27
27
with :
28
28
ref : ${{ github.events.inputs.tag }}
29
29
fetch-depth : 0
30
30
31
31
- name : Setup .NET
32
- uses : actions/setup-dotnet@v1
32
+ uses : actions/setup-dotnet@v4
33
33
with :
34
34
dotnet-version : ' 6.0.x'
35
35
@@ -51,13 +51,13 @@ jobs:
51
51
os : [ubuntu, macos]
52
52
target : [net6.0]
53
53
steps :
54
- - uses : actions/checkout@v2
54
+ - uses : actions/checkout@v4
55
55
with :
56
56
fetch-depth : 0
57
57
58
58
- name : Setup .NET Core
59
59
if : matrix.target == 'net6.0'
60
- uses : actions/setup-dotnet@v1
60
+ uses : actions/setup-dotnet@v4
61
61
with :
62
62
dotnet-version : ' 6.0.x'
63
63
@@ -73,44 +73,37 @@ jobs:
73
73
74
74
CodeCov :
75
75
name : Code Coverage
76
- runs-on : windows-2019
76
+ runs-on : windows-latest
77
77
env :
78
- DOTCOVER_VER : 2021 .1.2
79
- DOTCOVER_PKG : jetbrains.dotcover.commandlinetools
78
+ DOTCOVER_VER : 2024 .1.4
79
+ DOTCOVER_PKG : JetBrains.dotCover.CommandLineTools
80
80
COVER_SNAPSHOT : SharpZipLib.dcvr
81
81
steps :
82
- - uses : actions/checkout@v3
82
+ - uses : actions/checkout@v4
83
83
with :
84
84
fetch-depth : 0
85
85
86
86
- name : Setup .NET
87
- uses : actions/setup-dotnet@v1
87
+ uses : actions/setup-dotnet@v4
88
88
with :
89
89
dotnet-version : ' 6.0.x'
90
90
91
- # NOTE: This is the temporary fix for https://github.com/actions/virtual-environments/issues/1090
92
- - name : Cleanup before restore
93
- run : dotnet clean ICSharpCode.SharpZipLib.sln && dotnet nuget locals all --clear
94
-
95
91
- name : Install codecov
96
- run : nuget install -o tools -version ${{env.DOTCOVER_VER}} ${{env.DOTCOVER_PKG}}
97
-
98
- - name : Add dotcover to path
99
- run : echo "$(pwd)\tools\${{env.DOTCOVER_PKG}}.${{env.DOTCOVER_VER}}\tools" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
92
+ run : dotnet tool install ${{env.DOTCOVER_PKG}} --global --version ${{env.DOTCOVER_VER}}
100
93
101
94
- name : Run tests with code coverage
102
- run : dotcover dotnet --output=${{env.COVER_SNAPSHOT}} --filters=-:ICSharpCode.SharpZipLib.Tests -- test -c release
95
+ run : dotnet-dotCover dotnet --output=${{env.COVER_SNAPSHOT}} --filters=-:ICSharpCode.SharpZipLib.Tests -- test -c Release
103
96
104
97
- name : Create code coverage report
105
- run : dotcover report --source=${{env.COVER_SNAPSHOT}} --reporttype=detailedxml --output=dotcover-report.xml
98
+ run : dotnet-dotCover report --source=${{env.COVER_SNAPSHOT}} --reporttype=detailedxml --output=dotcover-report.xml
106
99
107
100
- name : Upload coverage to Codecov
108
- uses : codecov/codecov-action@v1.2.2
101
+ uses : codecov/codecov-action@v4
109
102
with :
110
103
files : dotcover-report.xml
111
104
112
105
- name : Upload coverage snapshot artifact
113
- uses : actions/upload-artifact@v2
106
+ uses : actions/upload-artifact@v4
114
107
with :
115
108
name : Code coverage snapshot
116
109
path : ${{env.COVER_SNAPSHOT}}
@@ -124,13 +117,13 @@ jobs:
124
117
PKG_PROPS : ' /p:ContinuousIntegrationBuild=true /p:EmbedUntrackedSources=true'
125
118
126
119
steps :
127
- - uses : actions/checkout@v2
120
+ - uses : actions/checkout@v4
128
121
with :
129
122
ref : ${{ github.events.inputs.tag }}
130
123
fetch-depth : 0
131
124
132
125
- name : Setup .NET Core
133
- uses : actions/setup-dotnet@v1
126
+ uses : actions/setup-dotnet@v4
134
127
with :
135
128
dotnet-version : ' 6.0.x'
136
129
@@ -159,7 +152,7 @@ jobs:
159
152
run : dotnet pack ${{ env.PKG_PROJ }} -c Release --output dist ${{ env.PKG_PROPS }} /p:Version=${{ env.PKG_VERSION }}
160
153
161
154
- name : Upload nuget package artifact
162
- uses : actions/upload-artifact@v2
155
+ uses : actions/upload-artifact@v4
163
156
with :
164
157
name : Nuget package
165
158
path : dist/*.nupkg
0 commit comments