Release 25.11 #345
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: .NET Framework Windows | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| build-and-test: | |
| runs-on: [windows-latest] | |
| strategy: | |
| matrix: | |
| # Test with .NET Framework | |
| # See https://learn.microsoft.com/en-us/lifecycle/products/microsoft-net-framework | |
| # For active versions | |
| include: | |
| - net-version: v4.6.2 | |
| framework: net462 | |
| - net-version: v4.8.0 | |
| framework: net480 | |
| - net-version: v4.8.1 | |
| framework: net481 | |
| continue-on-error: true | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Setup MSBuild | |
| uses: microsoft/setup-msbuild@v1.1 | |
| - name: Setup VSTest | |
| uses: darenm/Setup-VSTest@v1.2 | |
| - name: Build main project | |
| run: msbuild .\src\Aspose.BarCode.Cloud.Sdk.csproj ` | |
| -restore ` | |
| -p:Configuration=Release ` | |
| -p:TargetFramework=netstandard2.0 | |
| - name: Build test project for ${{ matrix.framework }} | |
| run: msbuild .\Tests\Aspose.BarCode.Cloud.Sdk.Tests.csproj ` | |
| -restore ` | |
| -p:Configuration=Release ` | |
| -p:TargetFramework=${{ matrix.framework }} | |
| - name: Test with VSTest | |
| run: | | |
| $ErrorActionPreference = "Stop" | |
| VSTest.Console.exe /Framework:".NETFramework,Version=${{ matrix.net-version }}" /ResultsDirectory:Tests\Results /Logger:"trx;LogFileName=test.log" Tests\bin\Release\${{ matrix.framework }}\Aspose.BarCode.Cloud.Sdk.Tests.dll | |
| if( ([xml](Get-Content Tests\Results\test.log)).TestRun.ResultSummary.Counters.total -ne 25 ){ throw "Not all tests were explored or added new tests" } | |
| env: | |
| TEST_CONFIGURATION_JWT_TOKEN: ${{ secrets.TEST_CONFIGURATION_ACCESS_TOKEN }} |