From c1368b7695c3bf8796c386cae3f1d58df0da5c90 Mon Sep 17 00:00:00 2001 From: Saar Shen Date: Thu, 26 Jan 2023 17:06:22 -0800 Subject: [PATCH] Hosting startup 6.0 (#335) * Adding missed spot of hosting startup. * Add dependency between release and debug * Update CI * Simplify and parallel ci builds --- .github/workflows/ci.yml | 22 ++++++++++++++----- ...nInsights.Kubernetes.HostingStartup.csproj | 2 +- 2 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cedc24b..c6e9905 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 }} diff --git a/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj b/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj index 2e865f5..25c027c 100644 --- a/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj +++ b/src/ApplicationInsights.Kubernetes.HostingStartup/ApplicationInsights.Kubernetes.HostingStartup.csproj @@ -1,6 +1,6 @@ - netstandard2.1 + net6.0 Microsoft.ApplicationInsights.Kubernetes.HostingStartup true