Skip to content

Instantly share code, notes, and snippets.

@MSDN-WhiteKnight
Last active November 21, 2019 05:45
Show Gist options
  • Save MSDN-WhiteKnight/48095cedccd0ce74a872fcf26a0e6ed7 to your computer and use it in GitHub Desktop.
Save MSDN-WhiteKnight/48095cedccd0ce74a872fcf26a0e6ed7 to your computer and use it in GitHub Desktop.
MSBuild CI
name: CI
on: [push]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build with MSBuild
run: |
& "$env:windir\Microsoft.NET\Framework\v4.0.30319\msbuild.exe"
name: CI
on: [push]
jobs:
build-and-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v1
- name: Build with MSBuild
run: |
& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\Enterprise\MSBuild\Current\Bin\msbuild.exe"
- name: Run unit tests
run: |
& "${env:ProgramFiles(x86)}\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\TestPlatform\vstest.console.exe" UnitTestProject1\bin\Debug\UnitTestProject1.dll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment