Skip to content

Commit 0a33619

Browse files
committed
Update GitHub Actions references
1 parent b8d5d41 commit 0a33619

File tree

3 files changed

+24
-31
lines changed

3 files changed

+24
-31
lines changed

.github/workflows/build-test.yml

+18-25
Original file line numberDiff line numberDiff line change
@@ -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

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v3
42+
uses: actions/checkout@v4
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

.github/workflows/release.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
runs-on: windows-latest
1717
name: Generate DocFX documentation
1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
2020
with:
2121
ref: ${{ github.events.inputs.tag }}
2222

2323
- name: Setup .NET
24-
uses: actions/setup-dotnet@v1
24+
uses: actions/setup-dotnet@v4
2525
with:
2626
dotnet-version: '6.0.x'
2727

@@ -35,7 +35,7 @@ jobs:
3535
run: docfx docs/help/docfx.json --warningsAsErrors
3636

3737
- name: Upload documentation as artifact
38-
uses: actions/upload-artifact@v2
38+
uses: actions/upload-artifact@v4
3939
with:
4040
name: site
4141
path: docs/help/_site
@@ -46,10 +46,10 @@ jobs:
4646
name: Update github pages docs
4747
steps:
4848
- name: Checkout
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050

5151
- name: Download Artifacts # The built project is downloaded into the 'site' folder.
52-
uses: actions/download-artifact@v1
52+
uses: actions/download-artifact@v4
5353
with:
5454
name: site
5555

0 commit comments

Comments
 (0)