Update CI dependencies #41
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: MSBuild | |
| on: | |
| push: | |
| branches: [ "master" ] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: windows-latest | |
| steps: | |
| - name: Add MSBuild to PATH | |
| uses: microsoft/setup-msbuild@v2 | |
| - name: Clone | |
| uses: actions/checkout@v6 | |
| - name: Initialize test reporting | |
| uses: testspace-com/setup-testspace@v1 | |
| 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@648a8eb78e6d50909eff900e4ec85cab4524a45b | |
| # with: | |
| # github-token: ${{ secrets.GITHUB_TOKEN }} | |
| # file: TestResults/coverage.info | |
| # format: lcov | |
| # - 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/upload-artifact@v6 | |
| with: | |
| name: WinampNowPlayingToFile | |
| path: .\artifact\ | |
| if-no-files-found: error |