From 17c631aef20d664b97b9641d19492d353a394b85 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 6 May 2026 09:40:11 +0000 Subject: [PATCH] =?UTF-8?q?ci:=20add=20PR=20checks=20workflow=20=E2=80=94?= =?UTF-8?q?=20test=20+=20build,=20no=20publish?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/pr-checks.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/pr-checks.yml diff --git a/.gitea/workflows/pr-checks.yml b/.gitea/workflows/pr-checks.yml new file mode 100644 index 0000000..924c134 --- /dev/null +++ b/.gitea/workflows/pr-checks.yml @@ -0,0 +1,29 @@ +name: PR Checks + +on: + pull_request: + branches: + - main + +jobs: + test-and-build: + runs-on: ubuntu-latest + container: mcr.microsoft.com/dotnet/sdk:10.0-noble + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Restore dependencies + run: dotnet restore + + - name: Build Shared + run: dotnet build src/GmRelay.Shared/GmRelay.Shared.csproj --no-restore + + - name: Build Bot (compile check) + run: dotnet build src/GmRelay.Bot/GmRelay.Bot.csproj --no-restore + + - name: Build Web (compile check) + run: dotnet build src/GmRelay.Web/GmRelay.Web.csproj --no-restore + + - name: Run tests + run: dotnet test tests/GmRelay.Bot.Tests/GmRelay.Bot.Tests.csproj --no-build --verbosity normal \ No newline at end of file