From b064ba6bcd4c877f83a76ca2628b447f7df73523 Mon Sep 17 00:00:00 2001 From: Farshad DASHTI Date: Fri, 4 Oct 2024 17:21:55 +0100 Subject: [PATCH] Updated yml files --- .github/workflows/build-test-asyncprocessing.yml | 6 ++++++ .github/workflows/build-test-caching.yml | 5 +++++ .github/workflows/build-test-contracts.yml | 6 ++++++ .github/workflows/build-test-http.yml | 6 ++++++ .github/workflows/build-test-testing.yml | 6 ++++++ .github/workflows/pack-asyncprocessing.yml | 1 + .github/workflows/pack-caching.yml | 1 + .github/workflows/pack-contracts.yml | 1 + .github/workflows/pack-http.yml | 1 + .github/workflows/pack-testing.yml | 1 + .github/workflows/pack-utilities.yml | 4 ---- src/DfE.CoreLibs.AsyncProcessing/readme.md | 1 - src/DfE.CoreLibs.Caching/readme.md | 1 - src/DfE.CoreLibs.Contracts/readme.md | 1 + src/DfE.CoreLibs.Http/readme.md | 1 + src/DfE.CoreLibs.Testing/readme.md | 1 + src/DfE.CoreLibs.Utilities/readme.md | 3 +-- 17 files changed, 38 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build-test-asyncprocessing.yml b/.github/workflows/build-test-asyncprocessing.yml index 087ed14..808b41a 100644 --- a/.github/workflows/build-test-asyncprocessing.yml +++ b/.github/workflows/build-test-asyncprocessing.yml @@ -6,6 +6,11 @@ on: - main paths: - 'src/DfE.CoreLibs.AsyncProcessing/**' + pull_request: + branches: + - main + paths: + - 'src/DfE.CoreLibs.AsyncProcessing/**' jobs: build-and-test: @@ -13,5 +18,6 @@ jobs: with: project_name: DfE.CoreLibs.AsyncProcessing project_path: src/DfE.CoreLibs.AsyncProcessing + run_tests: false secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-caching.yml b/.github/workflows/build-test-caching.yml index e86e59c..91b2ddb 100644 --- a/.github/workflows/build-test-caching.yml +++ b/.github/workflows/build-test-caching.yml @@ -6,6 +6,11 @@ on: - main paths: - 'src/DfE.CoreLibs.Caching/**' + pull_request: + branches: + - main + paths: + - 'src/DfE.CoreLibs.Caching/**' jobs: build-and-test: diff --git a/.github/workflows/build-test-contracts.yml b/.github/workflows/build-test-contracts.yml index 533d339..a216873 100644 --- a/.github/workflows/build-test-contracts.yml +++ b/.github/workflows/build-test-contracts.yml @@ -6,6 +6,11 @@ on: - main paths: - 'src/DfE.CoreLibs.Contracts/**' + pull_request: + branches: + - main + paths: + - 'src/DfE.CoreLibs.Contracts/**' jobs: build-and-test: @@ -13,5 +18,6 @@ jobs: with: project_name: DfE.CoreLibs.Contracts project_path: src/DfE.CoreLibs.Contracts + run_tests: false secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-http.yml b/.github/workflows/build-test-http.yml index 8511244..cc2c859 100644 --- a/.github/workflows/build-test-http.yml +++ b/.github/workflows/build-test-http.yml @@ -6,6 +6,11 @@ on: - main paths: - 'src/DfE.CoreLibs.Http/**' + pull_request: + branches: + - main + paths: + - 'src/DfE.CoreLibs.Http/**' jobs: build-and-test: @@ -13,5 +18,6 @@ jobs: with: project_name: DfE.CoreLibs.Http project_path: src/DfE.CoreLibs.Http + run_tests: false secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/build-test-testing.yml b/.github/workflows/build-test-testing.yml index 104f515..36c9143 100644 --- a/.github/workflows/build-test-testing.yml +++ b/.github/workflows/build-test-testing.yml @@ -6,6 +6,11 @@ on: - main paths: - 'src/DfE.CoreLibs.Testing/**' + pull_request: + branches: + - main + paths: + - 'src/DfE.CoreLibs.Testing/**' jobs: build-and-test: @@ -13,5 +18,6 @@ jobs: with: project_name: DfE.CoreLibs.Testing project_path: src/DfE.CoreLibs.Testing + run_tests: false secrets: SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} diff --git a/.github/workflows/pack-asyncprocessing.yml b/.github/workflows/pack-asyncprocessing.yml index 7c1399e..840cd2d 100644 --- a/.github/workflows/pack-asyncprocessing.yml +++ b/.github/workflows/pack-asyncprocessing.yml @@ -8,6 +8,7 @@ on: jobs: build-and-package: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event != 'pull_request' }} uses: ./.github/workflows/nuget-package-template.yml with: project_name: DfE.CoreLibs.AsyncProcessing diff --git a/.github/workflows/pack-caching.yml b/.github/workflows/pack-caching.yml index 57e4434..174df06 100644 --- a/.github/workflows/pack-caching.yml +++ b/.github/workflows/pack-caching.yml @@ -8,6 +8,7 @@ on: jobs: build-and-package: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event != 'pull_request' }} uses: ./.github/workflows/nuget-package-template.yml with: project_name: DfE.CoreLibs.Caching diff --git a/.github/workflows/pack-contracts.yml b/.github/workflows/pack-contracts.yml index 044d1c7..8ae7090 100644 --- a/.github/workflows/pack-contracts.yml +++ b/.github/workflows/pack-contracts.yml @@ -8,6 +8,7 @@ on: jobs: build-and-package: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event != 'pull_request' }} uses: ./.github/workflows/nuget-package-template.yml with: project_name: DfE.CoreLibs.Contracts diff --git a/.github/workflows/pack-http.yml b/.github/workflows/pack-http.yml index 1b1cab0..4557400 100644 --- a/.github/workflows/pack-http.yml +++ b/.github/workflows/pack-http.yml @@ -8,6 +8,7 @@ on: jobs: build-and-package: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event != 'pull_request' }} uses: ./.github/workflows/nuget-package-template.yml with: project_name: DfE.CoreLibs.Http diff --git a/.github/workflows/pack-testing.yml b/.github/workflows/pack-testing.yml index be6de61..2201015 100644 --- a/.github/workflows/pack-testing.yml +++ b/.github/workflows/pack-testing.yml @@ -8,6 +8,7 @@ on: jobs: build-and-package: + if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.head_branch == 'main' && github.event.workflow_run.event != 'pull_request' }} uses: ./.github/workflows/nuget-package-template.yml with: project_name: DfE.CoreLibs.Testing diff --git a/.github/workflows/pack-utilities.yml b/.github/workflows/pack-utilities.yml index 5c95c0b..d38b3c9 100644 --- a/.github/workflows/pack-utilities.yml +++ b/.github/workflows/pack-utilities.yml @@ -5,10 +5,6 @@ on: workflows: ["Build DfE.CoreLibs.Utilities"] types: - completed - branches: - - main - events: - - push jobs: build-and-package: diff --git a/src/DfE.CoreLibs.AsyncProcessing/readme.md b/src/DfE.CoreLibs.AsyncProcessing/readme.md index 51deac9..cfd19d2 100644 --- a/src/DfE.CoreLibs.AsyncProcessing/readme.md +++ b/src/DfE.CoreLibs.AsyncProcessing/readme.md @@ -12,7 +12,6 @@ dotnet add package DfE.CoreLibs.BackgroundService ## Usage - **Usage in a Command Handler** 1. **Service Registration:** You use a background service factory to enqueue tasks. Register the factory in your `Program.cs`: diff --git a/src/DfE.CoreLibs.Caching/readme.md b/src/DfE.CoreLibs.Caching/readme.md index facbc15..3dcb126 100644 --- a/src/DfE.CoreLibs.Caching/readme.md +++ b/src/DfE.CoreLibs.Caching/readme.md @@ -12,7 +12,6 @@ dotnet add package DfE.CoreLibs.Caching ## Usage - **Usage in Handlers** 1. **Service Registration:** You use `ICacheService` in your handlers to store and retrieve data from memory to avoid unnecessary processing and database queries. Here's how you register the caching service: diff --git a/src/DfE.CoreLibs.Contracts/readme.md b/src/DfE.CoreLibs.Contracts/readme.md index e69de29..8b13789 100644 --- a/src/DfE.CoreLibs.Contracts/readme.md +++ b/src/DfE.CoreLibs.Contracts/readme.md @@ -0,0 +1 @@ + diff --git a/src/DfE.CoreLibs.Http/readme.md b/src/DfE.CoreLibs.Http/readme.md index e69de29..8b13789 100644 --- a/src/DfE.CoreLibs.Http/readme.md +++ b/src/DfE.CoreLibs.Http/readme.md @@ -0,0 +1 @@ + diff --git a/src/DfE.CoreLibs.Testing/readme.md b/src/DfE.CoreLibs.Testing/readme.md index ddf80ec..5b18f23 100644 --- a/src/DfE.CoreLibs.Testing/readme.md +++ b/src/DfE.CoreLibs.Testing/readme.md @@ -12,6 +12,7 @@ dotnet add package DfE.CoreLibs.Testing ## Usage + ### Usage of Customization Attributes In your tests, you can use `CustomAutoData` to easily inject customizations like `AutoMapperCustomization`, this Customization scans your assembly for profiles and registers them automatically. diff --git a/src/DfE.CoreLibs.Utilities/readme.md b/src/DfE.CoreLibs.Utilities/readme.md index ebbc13c..fd43545 100644 --- a/src/DfE.CoreLibs.Utilities/readme.md +++ b/src/DfE.CoreLibs.Utilities/readme.md @@ -7,5 +7,4 @@ This package includes a set of utilities and extension methods. 1) Install the package. 2) Import the DfE.CoreLibs.Utilities namespace wherever you need to use one of the extensions or utilities. -3) Call the extension or utility you need. - +3) Call the extension or utility you need. \ No newline at end of file