name: CI
on:
  pull_request:
    branches: [main]
jobs:
  ci:
    name: Build, Format, and Test
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v6
      - name: Setup .NET
        uses: actions/setup-dotnet@v4
        with:
          dotnet-version: 10.0.x
      - name: Restore dependencies
        run: dotnet restore
      - name: Build
        run: dotnet build --no-restore
      - name: Check formatting
        run: dotnet format --verify-no-changes
      - name: Run tests
        run: dotnet test --no-build --verbosity normal
