From c4f3bee2c44d35fbdd918d508c6bca44132fad82 Mon Sep 17 00:00:00 2001 From: Heath Stewart Date: Tue, 21 Apr 2020 17:04:39 -0700 Subject: [PATCH] Add tests for different path resolution --- .github/workflows/test.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e096270..3ebb9e2 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,14 +17,27 @@ jobs: steps: - uses: actions/checkout@v2 - - name: Setup MSBuild - id: setup_msbuild + - name: Setup MSBuild (vswhere-path) + id: setup_msbuild_explicit uses: ./ with: - vs-version: "[16.4,)" + vswhere-path: C:\ProgramData\chocolatey\bin + + - name: Setup MSBuild (PATH) + id: setup_msbuild_path + uses: ./ + + - name: Setup MSBuild (fallback) + id: setup_msbuild_fallback + uses: ./ + env: + PATH: '' - name: echo msbuild path - run: echo "${{ steps.setup_msbuild.outputs.msbuildPath }}" + run: | + echo "vswhere-path: ${{ steps.setup_msbuild_explicit.outputs.msbuildPath }}" + echo "PATH: ${{ steps.setup_msbuild_path.outputs.msbuildPath }}" + echo "Fallback: ${{ steps.setup_msbuild_fallback.outputs.msbuildPath }}" - name: echo MSBuild run: msbuild -version \ No newline at end of file