From 30df859fa3db7b3b6233828fc08d46dad8ce8f07 Mon Sep 17 00:00:00 2001 From: konrad-kopciuch-relativity <61869303+konrad-kopciuch-relativity@users.noreply.github.com> Date: Fri, 5 Apr 2024 08:54:55 +0200 Subject: [PATCH 1/2] Build DotNetClientConsole --- .github/workflows/dotnet.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/dotnet.yml diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml new file mode 100644 index 0000000..4053326 --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,32 @@ +# 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: .NET + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + defaults: + run: + working-directory: ./Samples/DotNetClientConsole + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + - name: Restore dependencies + run: dotnet restore + - name: Build + run: dotnet build --no-restore + - name: Test + run: dotnet test --no-build --verbosity normal From 810be7ac2b4f56391e8c56a7c26564ef7bbf882b Mon Sep 17 00:00:00 2001 From: konrad-kopciuch-relativity <61869303+konrad-kopciuch-relativity@users.noreply.github.com> Date: Fri, 5 Apr 2024 13:51:02 +0200 Subject: [PATCH 2/2] changed dotnet-version to 7.0.x --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 4053326..d960db2 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -23,7 +23,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 8.0.x + dotnet-version: 7.0.x - name: Restore dependencies run: dotnet restore - name: Build