Hosting startup 6.0 (#335)
* Adding missed spot of hosting startup. * Add dependency between release and debug * Update CI * Simplify and parallel ci builds
This commit is contained in:
Родитель
e3eb4de7cf
Коммит
c1368b7695
|
@ -9,20 +9,30 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- develop
|
- develop
|
||||||
- feature/**
|
- feature/**
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
|
name: PR Build
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
config: [debug, release]
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Check out Source Code
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: Setup .NET
|
- name: Setup .NET
|
||||||
uses: actions/setup-dotnet@v2
|
uses: actions/setup-dotnet@v2
|
||||||
with:
|
with:
|
||||||
dotnet-version: 6.x
|
dotnet-version: 6.x
|
||||||
|
|
||||||
- name: Restore dependencies
|
- name: Restore dependencies
|
||||||
run: dotnet restore src/ApplicationInsights.Kubernetes
|
run: dotnet restore ApplicationInsights.Kubernetes.sln
|
||||||
- name: Build
|
|
||||||
run: dotnet build src/ApplicationInsights.Kubernetes --no-restore
|
- name: Build ApplicationInsights.Kubernetes
|
||||||
|
run: dotnet build ApplicationInsights.Kubernetes.sln --no-restore --configuration ${{ matrix.config }}
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: dotnet test tests/UnitTests --verbosity normal
|
run: dotnet test tests/UnitTests --verbosity normal --configuration ${{ matrix.config }}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
<AssemblyName>Microsoft.ApplicationInsights.Kubernetes.HostingStartup</AssemblyName>
|
<AssemblyName>Microsoft.ApplicationInsights.Kubernetes.HostingStartup</AssemblyName>
|
||||||
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче