-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
16 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -57,26 +57,35 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
|
||
# Install the .NET Core workload | ||
# Install Visual Studio Build Tools with MSBuild | ||
- name: Install Visual Studio Build Tools | ||
run: | | ||
choco install visualstudio2019buildtools --ignore-checksums -y | ||
choco install visualstudio2019-workload-netbuildtools --ignore-checksums -y | ||
# Install .NET Core SDK | ||
- name: Install .NET Core | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: 9.0.x | ||
dotnet-quality: preview | ||
|
||
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild | ||
# Set up MSBuild with the installed Build Tools | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
run: | | ||
echo "Adding MSBuild to path" | ||
echo "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin" >> $GITHUB_PATH | ||
# Execute all unit tests in the solution | ||
# Execute unit tests | ||
- name: Execute Unit Tests | ||
run: dotnet test ${{ matrix.solution }} -c ${{ matrix.configuration }} /nowarn:CS0067,CS0108,CS0109,CS0114,CS0169,CS0414,CS0649,CA1416,NU5104,NETSDK1138,SYSLIB0003 | ||
env: | ||
NUGET_CONFIG_PATH: ./NuGet.Config | ||
|
||
# Restore the application to populate the obj folder with RuntimeIdentifiers | ||
- name: Restore the Skylark | ||
run: '"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe" ${{ matrix.solution }} /t:Restore /p:Configuration=$env:Configuration' | ||
# Restore and Build using MSBuild (Framework version) | ||
- name: Restore and Build the Skylark | ||
run: | | ||
'"C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\MSBuild\Current\Bin\MSBuild.exe"' ${{ matrix.solution }} /t:Restore;Build /p:Configuration=$env:Configuration | ||
env: | ||
NUGET_CONFIG_PATH: ./NuGet.Config | ||
Configuration: ${{ matrix.configuration }} |