File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments