From a1be9b155c13e13b01009214b092d86e1858a508 Mon Sep 17 00:00:00 2001 From: Mateusz Dalke Date: Sat, 22 Nov 2025 13:57:44 +0100 Subject: [PATCH 1/2] Add CI workflow setup with .NET build and test steps - Introduced GitHub Actions workflow (`ci.yml`) for continuous integration. - Configured triggers for `main` and `develop` branches on push and pull requests. - Added steps for checkout, .NET setup, restore, build, and test. --- .github/workflows/ci.yml | 29 +++++++++++++++++++++++++++++ sparkly-server.csproj | 4 ++++ 2 files changed, 33 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..90f0345 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,29 @@ +name: CI + +on: + push: + branches: [ main, develop ] + pull_request: + branches: [ main, develop ] + +jobs: + build-and-test: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: 9.0.x + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/sparkly-server.csproj b/sparkly-server.csproj index abbb552..8b5a614 100644 --- a/sparkly-server.csproj +++ b/sparkly-server.csproj @@ -43,4 +43,8 @@ + + + + From c9894643092e9a9130c79b25cf7d2776a1b47525 Mon Sep 17 00:00:00 2001 From: Mateusz Dalke Date: Sat, 22 Nov 2025 14:00:04 +0100 Subject: [PATCH 2/2] Update CI workflow to remove branch-specific triggers --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 90f0345..3620223 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,7 @@ on: push: - branches: [ main, develop ] pull_request: - branches: [ main, develop ] jobs: build-and-test: