Merge pull request #19 from M-Files/issue-16 #8
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: Build | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| # pull_request: | |
| # branches: [ master, main ] | |
| jobs: | |
| build: | |
| timeout-minutes: 10 | |
| runs-on: 'windows-2022' | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup MSBuild path | |
| uses: microsoft/setup-msbuild@v1.1 | |
| - name: Setup dot net | |
| uses: actions/setup-dotnet@v2 | |
| with: | |
| dotnet-version: 6.0.x | |
| - name: Restore NuGet packages | |
| run: nuget restore MFilesAPI.Extensions.sln | |
| - name: Build solution - RELEASE configuration | |
| run: msbuild MFilesAPI.Extensions.sln /nologo /verbosity:m /p:Configuration=Release /t:Build /p:DefineConstants="DONOTDEPLOY" | |
| # Tests cannot be run as MFAPI is not installed. | |
| # - name: Test | |
| # run: dotnet test --no-restore --verbosity normal |