From ec61d5a2053b66b22714623b686c4005d5c596ed Mon Sep 17 00:00:00 2001 From: Stefan Koelle Date: Sun, 9 Aug 2026 16:27:13 +0200 Subject: [PATCH] feat: project cleanup - MIT license, tests, ESLint, health endpoint, PR checks --- .github/workflows/pr-check.yml | 51 ++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 .github/workflows/pr-check.yml diff --git a/.github/workflows/pr-check.yml b/.github/workflows/pr-check.yml new file mode 100644 index 0000000..b56c2dc --- /dev/null +++ b/.github/workflows/pr-check.yml @@ -0,0 +1,51 @@ +# Copyright (c) 2026 Stefan Koelle (https://stefankoelle.de) +# Licensed under the MIT License. See LICENSE file in project root for details. +name: PR Check + +on: + pull_request: + branches: [main] + +jobs: + backend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + + - name: Restore + run: dotnet restore + + - name: Build + run: dotnet build --no-restore + + - name: Test + run: dotnet test --no-build --verbosity normal + + frontend: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '22' + cache: 'npm' + cache-dependency-path: client/package-lock.json + + - name: Install dependencies + run: npm ci + working-directory: client + + - name: Lint + run: npm run lint + working-directory: client + + - name: Build + run: npm run build + working-directory: client