Module: GitHub Copilot #87
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: PowerAutomate.Desktop.Modules-PR | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| CONFIGURATION: "Release" | |
| ENVIRONMENT: "Production" | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Checkout | |
| if: ${{ success() }} | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: Setup MSBuild | |
| if: ${{ success() }} | |
| uses: microsoft/setup-msbuild@v1.3.1 | |
| - name: Restore solution | |
| if: ${{ success() }} | |
| run: msbuild PowerAutomate.Desktop.sln -target:restore -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }} | |
| - name: Build solution | |
| if: ${{ success() }} | |
| run: msbuild PowerAutomate.Desktop.sln -target:rebuild -property:Configuration=${{ env.CONFIGURATION }} -property:Environment=${{ env.ENVIRONMENT }} | |
| - name: Run unit tests | |
| if: ${{ success() }} | |
| run: dotnet test PowerAutomate.Desktop.sln |