Skip to content

Commit 586c9c4

Browse files
committed
Update github workflow
1 parent df9fc2a commit 586c9c4

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed

.github/workflows/dotnet.yml

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,30 +17,32 @@ jobs:
1717
build:
1818

1919
runs-on: ubuntu-latest
20-
strategy:
21-
matrix:
22-
dotnet-version: [ '7.0.x', '8.0.x' ]
20+
2321
env:
2422
working-directory: ./Dapper.CustomTypeHandlers
2523

2624
steps:
2725
- name: Checkout code
2826
uses: actions/checkout@v4
2927

30-
- name: Setup dotnet ${{ matrix.dotnet-version }}
28+
- name: Setup .NET 7.0.x
29+
uses: actions/setup-dotnet@v4
30+
with:
31+
dotnet-version: 7.0.x
32+
33+
- name: Setup .NET 8.0.x
3134
uses: actions/setup-dotnet@v4
3235
with:
33-
dotnet-version: ${{ matrix.dotnet-version }}
34-
36+
dotnet-version: 8.0.x
37+
38+
- name: List installed .NET SDKs
39+
run: dotnet --list-sdks
40+
3541
- name: Display dotnet version
3642
run: dotnet --version
37-
38-
- name: Restore dependencies
39-
run: dotnet restore
40-
working-directory: ${{env.working-directory}}
4143

4244
- name: Build the project
43-
run: dotnet build --configuration Release --no-restore
45+
run: dotnet build --configuration Release
4446
working-directory: ${{env.working-directory}}
4547

4648
- name: Run test

0 commit comments

Comments
 (0)