feat: project cleanup - MIT license, tests, ESLint, health endpoint, PR checks

This commit is contained in:
2026-08-09 16:27:13 +02:00
parent c0b4136d6c
commit ec61d5a205
+51
View File
@@ -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