From 582fe194b9f48a3f7802166898866f399a9dfa30 Mon Sep 17 00:00:00 2001 From: max Date: Sat, 2 Aug 2025 15:00:20 +0200 Subject: [PATCH] [ADD] Workflow: build on main push --- .gitea/workflows/BuildLibrary.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .gitea/workflows/BuildLibrary.yml diff --git a/.gitea/workflows/BuildLibrary.yml b/.gitea/workflows/BuildLibrary.yml new file mode 100644 index 0000000..bcfc853 --- /dev/null +++ b/.gitea/workflows/BuildLibrary.yml @@ -0,0 +1,30 @@ +name: Build C# Library + +run-name: Build Library project + +on: + push: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: '6.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build library + run: dotnet build --configuration Release + + - name: Run unit tests + run: dotnet test --configuration Release --no-build