Bump MSTest.TestAdapter from 3.0.2 to 3.1.1 #383
This file contains 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: KeeTrayTOTP PR Build | |
on: [pull_request] | |
env: | |
DOTNET_NOLOGO: 1 | |
DOTNET_CLI_TELEMETRY_OPTOUT: 1 | |
jobs: | |
build: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Add msbuild to PATH | |
uses: microsoft/setup-msbuild@v1.0.2 | |
- name: Setup Nuget.exe | |
uses: nuget/setup-nuget@v1 | |
- name: nuget restore | |
run: nuget restore KeeTrayTOTP.sln | |
- name: MSBuild | |
run: msbuild KeeTrayTOTP.sln /m | |
- name: Run tests | |
# It looks like the dotnet CLI can no longer build net45 projects? see https://github.com/microsoft/msbuild/issues/4704 | |
run: dotnet test --no-build | |
- name: MSBuild (With Plgx) | |
run: msbuild KeeTrayTOTP.sln /p:Configuration=ReleasePlgx | |
- name: Upload plgx | |
uses: actions/upload-artifact@v1 | |
with: | |
name: KeeTrayTOTP.plgx | |
path: KeeTrayTOTP\bin\ReleasePlgx\KeeTrayTOTP.plgx | |
build-mono: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install xvfb-run | |
run: sudo apt -y install xvfb | |
- name: Download nuget.exe | |
run: wget https://dist.nuget.org/win-x86-commandline/latest/nuget.exe | |
- name: nuget restore | |
run: mono nuget.exe restore | |
- name: MSBuild | |
run: msbuild /target:build | |
- name: Run tests | |
run: xvfb-run dotnet vstest KeeTrayTOTP.Tests/bin/Debug/KeeTrayTOTP.Tests.dll |