Skip to content

Commit

Permalink
Updated yml files
Browse files Browse the repository at this point in the history
  • Loading branch information
Farshad DASHTI authored and Farshad DASHTI committed Oct 4, 2024
1 parent 3dfe5a4 commit b064ba6
Show file tree
Hide file tree
Showing 17 changed files with 38 additions and 8 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-test-asyncprocessing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:
- main
paths:
- 'src/DfE.CoreLibs.AsyncProcessing/**'
pull_request:
branches:
- main
paths:
- 'src/DfE.CoreLibs.AsyncProcessing/**'

jobs:
build-and-test:
uses: ./.github/workflows/build-test-template.yml
with:
project_name: DfE.CoreLibs.AsyncProcessing
project_path: src/DfE.CoreLibs.AsyncProcessing
run_tests: false
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
5 changes: 5 additions & 0 deletions .github/workflows/build-test-caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ on:
- main
paths:
- 'src/DfE.CoreLibs.Caching/**'
pull_request:
branches:
- main
paths:
- 'src/DfE.CoreLibs.Caching/**'

jobs:
build-and-test:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/build-test-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:
- main
paths:
- 'src/DfE.CoreLibs.Contracts/**'
pull_request:
branches:
- main
paths:
- 'src/DfE.CoreLibs.Contracts/**'

jobs:
build-and-test:
uses: ./.github/workflows/build-test-template.yml
with:
project_name: DfE.CoreLibs.Contracts
project_path: src/DfE.CoreLibs.Contracts
run_tests: false
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/build-test-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:
- main
paths:
- 'src/DfE.CoreLibs.Http/**'
pull_request:
branches:
- main
paths:
- 'src/DfE.CoreLibs.Http/**'

jobs:
build-and-test:
uses: ./.github/workflows/build-test-template.yml
with:
project_name: DfE.CoreLibs.Http
project_path: src/DfE.CoreLibs.Http
run_tests: false
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
6 changes: 6 additions & 0 deletions .github/workflows/build-test-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ on:
- main
paths:
- 'src/DfE.CoreLibs.Testing/**'
pull_request:
branches:
- main
paths:
- 'src/DfE.CoreLibs.Testing/**'

jobs:
build-and-test:
uses: ./.github/workflows/build-test-template.yml
with:
project_name: DfE.CoreLibs.Testing
project_path: src/DfE.CoreLibs.Testing
run_tests: false
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
1 change: 1 addition & 0 deletions .github/workflows/pack-asyncprocessing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pack-caching.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pack-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pack-http.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pack-testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/pack-utilities.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@ on:
workflows: ["Build DfE.CoreLibs.Utilities"]
types:
- completed
branches:
- main
events:
- push

jobs:
build-and-package:
Expand Down
1 change: 0 additions & 1 deletion src/DfE.CoreLibs.AsyncProcessing/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`:
Expand Down
1 change: 0 additions & 1 deletion src/DfE.CoreLibs.Caching/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/DfE.CoreLibs.Contracts/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/DfE.CoreLibs.Http/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@

1 change: 1 addition & 0 deletions src/DfE.CoreLibs.Testing/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 1 addition & 2 deletions src/DfE.CoreLibs.Utilities/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

0 comments on commit b064ba6

Please sign in to comment.