name: Build EntKube

on:
  push:
    branches: [main]
  pull_request:
    branches: [main]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v4

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

      - name: Restore dependencies
        run: dotnet restore EntKube.slnx

      - name: Build
        run: dotnet build EntKube.slnx --no-restore --configuration Release

      - name: Test
        run: dotnet test EntKube.slnx --no-build --configuration Release
