Skip to content

Commit 423d89b

Browse files
authored
Merge pull request #332 from dorssel/ci
Update build workflow
2 parents 1ea79b2 + bd4093f commit 423d89b

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/dotnet.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
build:
2525
runs-on: ubuntu-latest
2626

27+
env:
28+
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages
29+
2730
steps:
2831
- name: Checkout
2932
uses: actions/checkout@v6
@@ -32,12 +35,12 @@ jobs:
3235

3336
- name: Setup .NET
3437
uses: actions/setup-dotnet@v5
35-
36-
- name: Cache
37-
uses: actions/cache@v4
3838
with:
39-
path: ~/.nuget/packages
40-
key: ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}
39+
cache: true
40+
cache-dependency-path: |
41+
global.json
42+
'**/Directory.Packages.props'
43+
.config/dotnet-tools.json
4144
4245
- name: Install dependencies
4346
run: |
@@ -82,9 +85,10 @@ jobs:
8285
8386
- name: Upload test results to Codecov
8487
if: ${{ !cancelled() }}
85-
uses: codecov/test-results-action@v1
88+
uses: codecov/codecov-action@v5
8689
with:
8790
fail_ci_if_error: true
91+
report_type: test_results
8892
files: TestResults/JUnit/*.xml
8993
disable_search: true
9094
token: ${{ secrets.CODECOV_TOKEN }}

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
#
33
# SPDX-License-Identifier: MIT
44

5+
.nuget/
6+
.vs/
7+
.vscode/
58
bin/
69
obj/
7-
.vs/
810
TestResults/
11+
912
*.user
10-
Examples/BlazorServerPush/wwwroot/libman/
1113
*.lutconfig

0 commit comments

Comments
 (0)