More CI trace outputs #6
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
# GitHub Actions definition for CI build. | |
name: CI Build | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
WinBuildTest: | |
name: Windows build and test | |
runs-on: windows-2022 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up .NET SDK | |
uses: actions/setup-dotnet@v1 | |
# No "with: dotnet-version" specified -> use global.json | |
- name: Restore packages | |
run: dotnet restore | |
- name: Build | |
run: dotnet build --configuration Release --no-restore | |
- name: Install ProjFS feature and run tests | |
run: | | |
Set-StrictMode -Version latest | |
$ErrorActionPreference = "Stop" | |
Write-Host "Installing ProjFS..." | |
enable-WindowsOptionalFeature -online -featurename client-projfs | |
Write-Host "" | |
Write-Host "Running tests" | |
dotnet test --no-build --configuration Release | |
shell: powershell |