@@ -19,17 +19,17 @@ jobs:
1919 fail-fast : false
2020 matrix :
2121 os : [ubuntu-latest, windows-latest, macos-latest]
22- target : [netstandard2.0, netstandard2.1, net6.0]
22+ target : [netstandard2.0, netstandard2.1, net6.0, net462 ]
2323 env :
2424 LIB_PROJ : src/ICSharpCode.SharpZipLib/ICSharpCode.SharpZipLib.csproj
2525 steps :
26- - uses : actions/checkout@v3
26+ - uses : actions/checkout@v4
2727 with :
2828 ref : ${{ github.events.inputs.tag }}
2929 fetch-depth : 0
3030
3131 - name : Setup .NET
32- uses : actions/setup-dotnet@v1
32+ uses : actions/setup-dotnet@v4
3333 with :
3434 dotnet-version : ' 6.0.x'
3535
@@ -51,13 +51,13 @@ jobs:
5151 os : [ubuntu, macos]
5252 target : [net6.0]
5353 steps :
54- - uses : actions/checkout@v2
54+ - uses : actions/checkout@v4
5555 with :
5656 fetch-depth : 0
5757
5858 - name : Setup .NET Core
5959 if : matrix.target == 'net6.0'
60- uses : actions/setup-dotnet@v1
60+ uses : actions/setup-dotnet@v4
6161 with :
6262 dotnet-version : ' 6.0.x'
6363
@@ -73,44 +73,37 @@ jobs:
7373
7474 CodeCov :
7575 name : Code Coverage
76- runs-on : windows-2019
76+ runs-on : windows-latest
7777 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
8080 COVER_SNAPSHOT : SharpZipLib.dcvr
8181 steps :
82- - uses : actions/checkout@v3
82+ - uses : actions/checkout@v4
8383 with :
8484 fetch-depth : 0
8585
8686 - name : Setup .NET
87- uses : actions/setup-dotnet@v1
87+ uses : actions/setup-dotnet@v4
8888 with :
8989 dotnet-version : ' 6.0.x'
9090
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-
9591 - 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}}
10093
10194 - 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
10396
10497 - 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
10699
107100 - name : Upload coverage to Codecov
108- uses : codecov/codecov-action@v1.2.2
101+ uses : codecov/codecov-action@v4
109102 with :
110103 files : dotcover-report.xml
111104
112105 - name : Upload coverage snapshot artifact
113- uses : actions/upload-artifact@v2
106+ uses : actions/upload-artifact@v4
114107 with :
115108 name : Code coverage snapshot
116109 path : ${{env.COVER_SNAPSHOT}}
@@ -124,13 +117,13 @@ jobs:
124117 PKG_PROPS : ' /p:ContinuousIntegrationBuild=true /p:EmbedUntrackedSources=true'
125118
126119 steps :
127- - uses : actions/checkout@v2
120+ - uses : actions/checkout@v4
128121 with :
129122 ref : ${{ github.events.inputs.tag }}
130123 fetch-depth : 0
131124
132125 - name : Setup .NET Core
133- uses : actions/setup-dotnet@v1
126+ uses : actions/setup-dotnet@v4
134127 with :
135128 dotnet-version : ' 6.0.x'
136129
@@ -159,7 +152,7 @@ jobs:
159152 run : dotnet pack ${{ env.PKG_PROJ }} -c Release --output dist ${{ env.PKG_PROPS }} /p:Version=${{ env.PKG_VERSION }}
160153
161154 - name : Upload nuget package artifact
162- uses : actions/upload-artifact@v2
155+ uses : actions/upload-artifact@v4
163156 with :
164157 name : Nuget package
165158 path : dist/*.nupkg
0 commit comments