Skip to content

Commit 814f7c6

Browse files
author
Pratik Bhattacharya
committed
2 parents f2fac3d + 8cb6c90 commit 814f7c6

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

.github/workflows/gated-build.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# This is a workflow to check the validity of the build after every check-in
2+
3+
name: Gated-build
4+
5+
on:
6+
push:
7+
branches: [ main ]
8+
pull_request:
9+
branches: [ main ]
10+
11+
jobs:
12+
build:
13+
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Setup .NET Core
19+
uses: actions/setup-dotnet@v1
20+
with:
21+
dotnet-version: 3.1.301
22+
- name: Install dependencies
23+
run: dotnet restore **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln
24+
- name: Build
25+
run: dotnet build **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln --configuration Release --no-restore
26+
- name: Test
27+
run: dotnet test **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln --no-restore --verbosity normal

.github/workflows/main.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# This workflow will publish the AppInsights.Telemetry.AspNetCore.Extension package to https://nuget.org
2+
3+
name: Nuget-publish
4+
on:
5+
workflow_dispatch:
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- name: Setup .NET Core
12+
uses: actions/setup-dotnet@v1
13+
with:
14+
dotnet-version: 3.1.301
15+
- name: Install dependencies
16+
run: dotnet restore **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln
17+
- name: Build
18+
run: dotnet build **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln --configuration Release --no-restore
19+
- name: Test
20+
run: dotnet test **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.sln --no-restore --verbosity normal
21+
- name: Pack
22+
run: dotnet pack **/AppInsights.EnterpriseTelemetry.AspNetCore.Extension.csproj
23+
- name: Publish
24+
run: dotnet nuget push **/*.nupkg --api-key oy2nmvjm6ioh6mg73f6amujwsabw755uxpsexv4nx5fyea --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)