Skip to content

Update to version 0.14 #512

Update to version 0.14

Update to version 0.14 #512

Workflow file for this run

#
# This workflow will build and run all unit tests.
#
name: AzureExt-CI
on:
pull_request:
push:
branches: [ "main", "feature*" ]
jobs:
build-and-test:
strategy:
matrix:
configuration: [Release, Debug]
platform: [x64, arm64]
os: [windows-latest]
dotnet-version: ['8.0.x']
exclude:
- configuration: Debug
platform: x64
- configuration: Release
platform: arm64
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
clean: true
- name: Setup .NET SDK ${{ matrix.dotnet-version }}
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
env:
NUGET_AUTH_TOKEN: ${{ secrets.GPR_READ_TOKEN }}
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v2
with:
vs-version: '17.5'
- name: Download nuget
run: |
mkdir ".\.nuget"
Invoke-WebRequest "https://dist.nuget.org/win-x86-commandline/latest/nuget.exe" -OutFile ".\.nuget\nuget.exe"
- name: Find VsDevCmd.bat
run: |
$VSDevCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -find Common7\tools\VSDevCmd.bat
if (!$VSDevCmd) { exit 1 }
echo "Using VSDevCmd: ${VSDevCmd}"
Add-Content $env:GITHUB_ENV "VSDevCmd=$VSDevCmd"
- name: Restore dependencies
run: dotnet restore DevHomeAzureExtension.sln -p:PublishReadyToRun=true
- name: Restore nuget packages
run: cmd /c "$env:VSDevCmd" "&" nuget restore DevHomeAzureExtension.sln
- name: Build_DevHomeAzureExtension
run: cmd /c "$env:VSDevCmd" "&" msbuild /p:Configuration=${{ matrix.configuration }},Platform=${{ matrix.platform }} /restore DevHomeAzureExtension.sln
- name: Find vstest.console.exe
if: ${{ matrix.platform != 'arm64' }}
run: |
$VSDevTestCmd = & "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere" -latest -prerelease -products * -find **\TestPlatform\vstest.console.exe
if (!$VSDevTestCmd) { exit 1 }
echo "Using VSDevTestCmd: ${VSDevTestCmd}"
Add-Content $env:GITHUB_ENV "VSDevTestCmd=$VSDevTestCmd"
- name: DevHome UnitTests
if: ${{ matrix.platform != 'arm64' }}
run: cmd /c "$env:VSDevTestCmd" /Platform:${{ matrix.platform }} /TestCaseFilter:"TestCategory!=LiveData" BuildOutput\\${{ matrix.configuration }}\\${{ matrix.platform }}\\AzureExtension.Test\\AzureExtension.Test.dll