Skip to content

Commit

Permalink
Hosting startup 6.0 (#335)
Browse files Browse the repository at this point in the history
* Adding missed spot of hosting startup.

* Add dependency between release and debug

* Update CI

* Simplify and parallel ci builds
  • Loading branch information
xiaomi7732 authored Jan 27, 2023
1 parent e3eb4de commit c1368b7
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
22 changes: 16 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,30 @@ on:
branches:
- develop
- feature/**
workflow_dispatch:

jobs:
build:

name: PR Build
strategy:
matrix:
config: [debug, release]
runs-on: ubuntu-22.04

steps:
- uses: actions/checkout@v3
- name: Check out Source Code
uses: actions/checkout@v3

- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 6.x

- name: Restore dependencies
run: dotnet restore src/ApplicationInsights.Kubernetes
- name: Build
run: dotnet build src/ApplicationInsights.Kubernetes --no-restore
run: dotnet restore ApplicationInsights.Kubernetes.sln

- name: Build ApplicationInsights.Kubernetes
run: dotnet build ApplicationInsights.Kubernetes.sln --no-restore --configuration ${{ matrix.config }}

- name: Test
run: dotnet test tests/UnitTests --verbosity normal
run: dotnet test tests/UnitTests --verbosity normal --configuration ${{ matrix.config }}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.1</TargetFramework>
<TargetFramework>net6.0</TargetFramework>
<AssemblyName>Microsoft.ApplicationInsights.Kubernetes.HostingStartup</AssemblyName>
<GenerateDocumentationFile>true</GenerateDocumentationFile>

Expand Down

0 comments on commit c1368b7

Please sign in to comment.