diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 62eb498..03cffcd 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -1,26 +1,31 @@ -name: .NET Build CI +name: .NET Desktop CI on: push: - branches: [main] + branches: + - main + pull_request: + branches: + - main jobs: build: - runs-on: ubuntu-latest + + runs-on: windows-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v2 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v1 with: - dotnet-version: 8.0.x - + dotnet-version: '8.0' + - name: Restore dependencies run: dotnet restore - + - name: Build - run: dotnet build --no-restore /p:EnableWindowsTargeting=true - + run: dotnet build --configuration Release --no-restore + - name: Test - run: dotnet test --no-build /p:EnableWindowsTargeting=true --verbosity normal + run: dotnet test --no-build --verbosity normal