diff --git a/.github/workflows/ci-merge-request.yml b/.github/workflows/ci-merge-request.yml new file mode 100644 index 00000000..a4a9cab6 --- /dev/null +++ b/.github/workflows/ci-merge-request.yml @@ -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 + diff --git a/frontend/tsconfig.json b/frontend/tsconfig.json index fec8c8e5..6de0d4b9 100644 --- a/frontend/tsconfig.json +++ b/frontend/tsconfig.json @@ -3,6 +3,7 @@ "references": [ { "path": "./tsconfig.app.json" }, { "path": "./tsconfig.node.json" } + // { "path": "./tsconfig.node.json" } ], "compilerOptions": { "baseUrl": ".",