From f7a9eb8d5688871de7e6d04e483e60b7c367906a Mon Sep 17 00:00:00 2001 From: Mauro Biaggio Date: Sun, 23 Jun 2024 08:24:11 +0200 Subject: [PATCH] Create dotnet-build-test.yml --- .github/workflows/dotnet-build-test.yml | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/dotnet-build-test.yml diff --git a/.github/workflows/dotnet-build-test.yml b/.github/workflows/dotnet-build-test.yml new file mode 100644 index 0000000..2c1b457 --- /dev/null +++ b/.github/workflows/dotnet-build-test.yml @@ -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 +