Skip to content

Commit aec2d07

Browse files
ci workflow/action (#1)
* Initial draft of the ci workflow/action * Add non-master triggering * Update ci.yml - add NuGet package generation * Update ci.yml - tweak step label
1 parent 56a2d96 commit aec2d07

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI Build and Test
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
branches:
9+
- master
10+
workflow_dispatch:
11+
12+
jobs:
13+
build:
14+
runs-on: windows-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
20+
- name: Setup .NET
21+
uses: actions/setup-dotnet@v3
22+
with:
23+
dotnet-version: 9.x
24+
25+
- name: Restore dependencies
26+
run: dotnet restore Infragistics.QueryBuilder.Executor.sln
27+
28+
- name: Build solution
29+
run: dotnet build Infragistics.QueryBuilder.Executor.sln --configuration Release --no-restore
30+
31+
- name: Pack solution - NuGet
32+
run: dotnet pack Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build
33+
34+
- name: Run tests
35+
run: dotnet test Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build --verbosity normal

0 commit comments

Comments
 (0)