Skip to content

Updated test libraries to fix the error "An exception occurred while … #30

Updated test libraries to fix the error "An exception occurred while …

Updated test libraries to fix the error "An exception occurred while … #30

Workflow file for this run

name: .NET
on:
push:
branches: [ master ]
workflow_dispatch:
jobs:
build:
env:
ProjectName: BehringerXTouchExtender
CORECLR_PROFILER_PATH_32: ${{ github.workspace }}\Tests\Vendor\JustMock\32\Telerik.CodeWeaver.Profiler.dll
CORECLR_PROFILER_PATH_64: ${{ github.workspace }}\Tests\Vendor\JustMock\64\Telerik.CodeWeaver.Profiler.dll
runs-on: windows-latest
steps:
- name: Clone
uses: actions/checkout@v4
- name: Initialize test reporting
uses: testspace-com/setup-testspace@v1
with:
domain: ${{github.repository_owner}}
- name: Restore
run: dotnet restore --verbosity normal
- name: Build
run: dotnet build --no-restore --configuration Release --verbosity normal
- name: Pack
run: dotnet pack ${{ env.ProjectName }} --no-build --configuration Release --verbosity normal
- name: Test
run: |
dotnet test --verbosity normal --configuration Release --collect:"XPlat Code Coverage" --settings Tests/Tests.runsettings --logger "trx;LogFileName=TestResults.xml"
Out-File -InputObject "TEST_EXIT_CODE=$LASTEXITCODE" -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
Copy-Item Tests/TestResults/*/coverage.info Tests/TestResults -ErrorAction Continue
exit 0
- name: Upload test report
run: testspace Tests/TestResults/TestResults.xml
- name: Upload coverage
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
files: Tests/TestResults/coverage.info
format: lcov
- name: Stop if tests failed
run: exit $env:TEST_EXIT_CODE
- name: Upload package
uses: actions/upload-artifact@v4
with:
name: ${{ env.ProjectName }}.nupkg
path: ${{ env.ProjectName }}/bin/Release/*.*nupkg