Skip to content

Commit

Permalink
Create dotnet-build-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
biasc authored Jun 23, 2024
1 parent 64e2db7 commit f7a9eb8
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/dotnet-build-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

name: .NET Core Desktop

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build:
strategy:
matrix:
dotnet-version: [ '8.0.x' ]
runs-on: ubuntu-latest

env:
Solution_Name: SqlQueryBuilder.sln

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Display dotnet version
run: dotnet --version
- name: Setup MSBuild.exe
uses: microsoft/setup-msbuild@v2
- name: Install dependencies
run: dotnet restore
- name: Build
run: dotnet build
- name: Execute unit tests
run: dotnet test

0 comments on commit f7a9eb8

Please sign in to comment.