Skip to content

#21: Visual C++ 2022 Redistributable x86 is required to avoid NOT LOA… #35

#21: Visual C++ 2022 Redistributable x86 is required to avoid NOT LOA…

#21: Visual C++ 2022 Redistributable x86 is required to avoid NOT LOA… #35

Workflow file for this run

name: MSBuild
on:
push:
branches: [ "master" ]
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: windows-latest
steps:
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Clone
uses: actions/[email protected]
- name: Initialize test reporting
uses: testspace-com/[email protected]
with:
domain: ${{github.repository_owner}}
- name: Restore
run: msbuild -t:restore -p:Configuration=Release -p:RestoreLockedMode=true -m
- name: Build
run: |
msbuild gen_WinampNowPlayingToFile -t:build -p:Configuration=Release -m
- name: Test
run: |
dotnet build Test --no-dependencies --configuration Release
dotnet publish Test --no-build --configuration Release
dotnet vstest Test\bin\Release\net472\publish\Test.dll --collect:"XPlat code coverage" --settings:Test\Test.runsettings --logger:"trx;LogFileName=TestResults.xml"
Out-File -InputObject "TEST_EXIT_CODE=$LASTEXITCODE" -FilePath $env:GITHUB_ENV -Append -Encoding UTF8
Copy-Item TestResults/*/coverage.info TestResults -ErrorAction Continue
exit 0
- name: Upload test report
run: testspace TestResults/TestResults.xml
- name: Upload coverage
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: TestResults/coverage.info
- name: Stop if tests failed
run: exit $env:TEST_EXIT_CODE
- name: Prepare artifacts
run: |
mkdir .\artifact\plugins\
copy .\gen_WinampNowPlayingToFile\Release\*.dll .\artifact\
move .\artifact\gen_WinampNowPlayingToFile.dll .\artifact\plugins\
- name: Upload artifacts
uses: actions/[email protected]
with:
name: WinampNowPlayingToFile
path: .\artifact\
if-no-files-found: error