Skip to content

Commit

Permalink
Update dotnet github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
kubagdynia committed Sep 9, 2024
1 parent 234979f commit 27df7c5
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,30 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
dotnet: [ '6.0.x', '7.0.x', '8.0.x' ]
dotnet-version: [ '6.0.x', '7.0.x', '8.0.x' ]
env:
working-directory: ./Dapper.CustomTypeHandlers

steps:
- uses: actions/checkout@v3
- name: Setup .NET
uses: actions/setup-dotnet@v3
- name: Checkout code
uses: actions/checkout@v4

- name: Setup dotnet ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: ${{ matrix.dotnet-version }}

- name: Display dotnet version
run: dotnet --version

- name: Restore dependencies
run: dotnet restore
working-directory: ${{env.working-directory}}
- name: Build
run: dotnet build --no-restore

- name: Build the project
run: dotnet build --configuration Release --no-restore
working-directory: ${{env.working-directory}}
- name: Test
run: dotnet test --no-build --verbosity normal

- name: Run test
run: dotnet test --configuration Release --no-build --verbosity normal
working-directory: ${{env.working-directory}}

0 comments on commit 27df7c5

Please sign in to comment.