Skip to content

Commit 31ca74a

Browse files
committed
Update github workflow
1 parent 5239b2b commit 31ca74a

File tree

1 file changed

+18
-11
lines changed

1 file changed

+18
-11
lines changed

.github/workflows/dotnet.yml

Lines changed: 18 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,25 @@ jobs:
2121
working-directory: ./DapperMappers
2222

2323
steps:
24-
- uses: actions/checkout@v3
25-
- name: Setup .NET
26-
uses: actions/setup-dotnet@v3
24+
- name: Checkout code
25+
uses: actions/checkout@v4
26+
27+
- name: Setup .NET 9.0.x
28+
uses: actions/setup-dotnet@v4
2729
with:
28-
dotnet-version: 8.0.x
29-
- name: Restore dependencies
30-
run: dotnet restore
30+
dotnet-version: 9.0.x
31+
32+
- name: List installed .NET SDKs
33+
run: dotnet --list-sdks
34+
35+
- name: Display dotnet version
36+
run: dotnet --version
37+
38+
- name: Build the project
39+
run: dotnet build --configuration Release
3140
working-directory: ${{env.working-directory}}
32-
- name: Build
33-
run: dotnet build --no-restore
34-
working-directory: ${{env.working-directory}}
35-
- name: Test
36-
run: dotnet test --no-build --verbosity normal
41+
42+
- name: Run test
43+
run: dotnet test --configuration Release --no-build --verbosity normal
3744
working-directory: ${{env.working-directory}}
3845

0 commit comments

Comments
 (0)