From ecc284f93c666e9e6336ec0b0e4aad1d2f3ddbe3 Mon Sep 17 00:00:00 2001 From: Emerson Brito Date: Thu, 23 Feb 2023 16:45:05 -0500 Subject: [PATCH] Create dotnet-build.yml --- .github/workflows/dotnet-build.yml | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/dotnet-build.yml diff --git a/.github/workflows/dotnet-build.yml b/.github/workflows/dotnet-build.yml new file mode 100644 index 0000000..b510f45 --- /dev/null +++ b/.github/workflows/dotnet-build.yml @@ -0,0 +1,36 @@ +# This workflow will build a .NET project +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net + +name: build and test + +on: + workflow_dispatch: + pull_request: + branches: [ main ] + paths: + - '**.cs' + - '**.csproj' + +jobs: + build-and-test: + + runs-on: ubuntu-latest + defaults: + run: + working-directory: src/ + + steps: + - uses: actions/checkout@v3 + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 6.0.x + + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build EmBrito.Dataverse.Extensions.ClientFactory.sln --configuration Release --no-restore + + - name: Test + run: dotnet test --configuration Release --no-build --no-restore --verbosity normal