Release 25.4 #318
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 the Solution | |
run: msbuild -restore -p:Configuration=Release | |
- 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 }} |