From d27b013c8fd4ddc5bbce480e667859052ba93f6c Mon Sep 17 00:00:00 2001 From: eeoooue Date: Fri, 23 May 2025 12:23:36 +0100 Subject: [PATCH 1/2] Create dotnet.yml --- .github/workflows/dotnet.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 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..91ac3ef --- /dev/null +++ b/.github/workflows/dotnet.yml @@ -0,0 +1,35 @@ + +# 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 Build & Test + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 8.0.x + + - name: Restore dependencies + working-directory: ./Solution/ + run: dotnet restore + + - name: Build + working-directory: ./Solution/ + run: dotnet build --no-restore + + - name: Unit Tests + working-directory: ./Solution/TestSuite/ + run: dotnet test --no-build --verbosity normal From a8e61fa0f5a7796db0ed16f8f7fa06d5434ce2b5 Mon Sep 17 00:00:00 2001 From: eeoooue Date: Fri, 23 May 2025 12:26:32 +0100 Subject: [PATCH 2/2] changed runner to windows --- .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 91ac3ef..62ed25d 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -13,7 +13,7 @@ on: jobs: build: - runs-on: ubuntu-latest + runs-on: windows-latest steps: - uses: actions/checkout@v4