Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ci-merge-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@

name: CI on Pull Request

on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]

jobs:
frontend:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'

- name: Install dependencies
run: npm ci
working-directory: ./frontend

- name: Build React app
run: npm run build
working-directory: ./frontend

- name: Run lint
run: npm run lint
working-directory: ./frontend

backend:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'

- name: Restore dependencies
run: dotnet restore
working-directory: ./backend

- name: Build backend in Release
run: dotnet build -c Release --no-restore
working-directory: ./backend

1 change: 1 addition & 0 deletions frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"references": [
{ "path": "./tsconfig.app.json" },
{ "path": "./tsconfig.node.json" }
// { "path": "./tsconfig.node.json" }
],
"compilerOptions": {
"baseUrl": ".",
Expand Down