mirror of
https://github.com/microsoft/setup-msbuild.git
synced 2024-11-14 07:51:06 +07:00
Add tests for different path resolution
This commit is contained in:
parent
20e1303853
commit
c4f3bee2c4
21
.github/workflows/test.yml
vendored
21
.github/workflows/test.yml
vendored
@ -17,14 +17,27 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- name: Setup MSBuild
|
- name: Setup MSBuild (vswhere-path)
|
||||||
id: setup_msbuild
|
id: setup_msbuild_explicit
|
||||||
uses: ./
|
uses: ./
|
||||||
with:
|
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
|
- 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
|
- name: echo MSBuild
|
||||||
run: msbuild -version
|
run: msbuild -version
|
Loading…
Reference in New Issue
Block a user