From 4a870bf2aed2f7d651dc78a29a009ade2deed25b Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Wed, 4 Jun 2025 11:22:30 +0000 Subject: [PATCH 1/4] Initial draft of the ci workflow/action --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d10d713 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: CI Build and Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: windows-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 9.x + + - name: Restore dependencies + run: dotnet restore Infragistics.QueryBuilder.Executor.sln + + - name: Build solution + run: dotnet build Infragistics.QueryBuilder.Executor.sln --configuration Release --no-restore + + - name: Run tests + run: dotnet test Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build --verbosity normal \ No newline at end of file From b4b3aa65eb2a74a9202afa5ad4203ac03d5a6ebc Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Wed, 4 Jun 2025 11:27:58 +0000 Subject: [PATCH 2/4] Add non-master triggering --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d10d713..033cff5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: pull_request: branches: - master + workflow_dispatch: jobs: build: From 60b92c2a98d9dcf5c21ed68ccf9a82c06f7798e1 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Wed, 2 Jul 2025 16:19:31 +0300 Subject: [PATCH 3/4] Update ci.yml - add NuGet package generation --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 033cff5..b944fc3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,5 +28,8 @@ jobs: - name: Build solution run: dotnet build Infragistics.QueryBuilder.Executor.sln --configuration Release --no-restore + - name: Build solution + run: dotnet pack Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build + - name: Run tests - run: dotnet test Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build --verbosity normal \ No newline at end of file + run: dotnet test Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build --verbosity normal From cbd50d089da8556f8695c92c2e1ce4d3c9fccdd6 Mon Sep 17 00:00:00 2001 From: Borislav Traykov Date: Wed, 2 Jul 2025 16:21:38 +0300 Subject: [PATCH 4/4] Update ci.yml - tweak step label --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b944fc3..f0f8ff0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,7 @@ jobs: - name: Build solution run: dotnet build Infragistics.QueryBuilder.Executor.sln --configuration Release --no-restore - - name: Build solution + - name: Pack solution - NuGet run: dotnet pack Infragistics.QueryBuilder.Executor.sln --configuration Release --no-build - name: Run tests