# The check every pull request goes through: the solution builds and the tests pass. # # The runner has to be a Windows one with the .NET 10 SDK: the application is # WPF, so neither the build nor the tests happen anywhere else. The tests raise # real windows and ask Windows for the foreground one, so the runner has to work # in an interactive desktop session — as a service in session 0 the end-to-end # checks have no window to wait for. name: Pull request on: pull_request: branches: - master # A new push into the branch makes the previous run pointless concurrency: group: pull-request-${{ github.event.pull_request.number }} cancel-in-progress: true defaults: run: shell: pwsh jobs: build: runs-on: windows-x64 steps: # lfs: true is not a nicety: the exe icon lives in Git LFS, and without it # the checkout leaves a text pointer that the build cannot read as an icon - name: Check out the sources uses: actions/checkout@v4 with: lfs: true - name: Show the toolchain run: dotnet --info - name: Restore run: dotnet restore CursorLang.sln --nologo - name: Build run: dotnet build CursorLang.sln --configuration Release --no-restore --nologo # The tests take the application from bin\Release, which is why the whole # run is a Release one: in Debug they would find no executable and skip # themselves — a green run that checked nothing - name: Test run: > dotnet test CursorLang.sln --configuration Release --no-build --nologo --settings CursorLang.Tests/coverage.runsettings