Skip to content

Commit f732d8e

Browse files
authored
Update GitHub Actions
1 parent 6570508 commit f732d8e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed
Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ on:
3131
- published
3232

3333
env:
34+
# Disable the .NET logo in the console output.
35+
DOTNET_NOLOGO: true
3436
# Set the DOTNET_SKIP_FIRST_TIME_EXPERIENCE environment variable to stop wasting time caching packages
3537
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
3638
# Disable sending usage data to Microsoft
@@ -50,11 +52,13 @@ jobs:
5052

5153
steps:
5254
- name: 'Checkout'
53-
uses: actions/checkout@v1
54-
- name: 'Git Fetch Tags'
55-
run: git fetch --tags
55+
uses: actions/checkout@v4
56+
with:
57+
fetch-depth: 0
58+
fetch-tags: true
59+
#filter: tree:0
5660
- name: 'Install .NET SDK'
57-
uses: actions/setup-dotnet@v3
61+
uses: actions/setup-dotnet@v4
5862
- name: '.NET Restore'
5963
run: dotnet tool restore
6064
- name: 'Build Project'
@@ -64,7 +68,7 @@ jobs:
6468
- name: 'Pack NuGet'
6569
run: dotnet cake --target=Pack
6670
- name: 'Publish Artifacts'
67-
uses: actions/upload-artifact@v3
71+
uses: actions/upload-artifact@v4
6872
with:
6973
name: ${{matrix.os}}
7074
path: ${{env.BUILD_ARTIFACT_PATH}}
@@ -75,22 +79,23 @@ jobs:
7579
needs: build
7680
steps:
7781
- name: 'Checkout'
78-
uses: actions/checkout@v1
82+
uses: actions/checkout@v4
7983
- name: 'Download Artifact'
80-
uses: actions/download-artifact@v3
84+
uses: actions/download-artifact@v4
8185
with:
8286
name: 'ubuntu-latest'
8387
- name: 'Install ReportGenerator'
8488
run: dotnet tool install -g dotnet-reportgenerator-globaltool
8589
- name: 'Generate Coverage Report'
8690
run: reportgenerator -reports:./TestResults/**/coverage.cobertura.xml -targetdir:${{env.BUILD_ARTIFACT_PATH}}/TestResults/Coverage/Reports "-reporttypes:HtmlInline;HTMLChart;Cobertura"
8791
- name: 'Upload Coverage'
88-
uses: codecov/codecov-action@v2
92+
uses: codecov/codecov-action@v4
8993
with:
9094
file: Cobertura.xml
9195
fail_ci_if_error: false
96+
token: ${{ secrets.CODECOV_TOKEN }}
9297
- name: 'Publish Coverage Report'
93-
uses: actions/upload-artifact@v3
98+
uses: actions/upload-artifact@v4
9499
with:
95100
name: 'coverage-report'
96101
path: ${{env.BUILD_ARTIFACT_PATH}}
@@ -107,7 +112,7 @@ jobs:
107112
runs-on: windows-latest
108113
steps:
109114
- name: 'Download Artifact'
110-
uses: actions/download-artifact@v3
115+
uses: actions/download-artifact@v4
111116
with:
112117
name: 'windows-latest'
113118
- name: 'NuGet Push'
@@ -123,7 +128,7 @@ jobs:
123128
runs-on: windows-latest
124129
steps:
125130
- name: 'Download Artifact'
126-
uses: actions/download-artifact@v3
131+
uses: actions/download-artifact@v4
127132
with:
128133
name: 'windows-latest'
129134
- name: 'NuGet Push'

0 commit comments

Comments
 (0)