Skip to content

Conversation

Alirexaa
Copy link
Collaborator

What this PR does / why we need it:

Which issue(s) this PR fixes:

Contributes to #2335

Special notes for your reviewer:

Does this PR introduce a user-facing change?:

Please make sure you've completed the relevant tasks for this PR, out of the following list:

  • Code compiles correctly
  • Created/updated tests
  • Unit tests passing
  • End-to-end tests passing
  • Extended the documentation
  • Provided sample for the feature

@github-actions github-actions bot added the github_actions Pull requests that update Github_actions code label Dec 17, 2024
@Alirexaa Alirexaa self-assigned this Dec 17, 2024
@Alirexaa Alirexaa mentioned this pull request Dec 17, 2024
71 tasks
@Alirexaa Alirexaa requested a review from adamsitnik December 17, 2024 14:29
Copy link
Collaborator

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall it looks great, but it would be nice if we could simplify the yml file and reuse the pattern in other PRs (so introducing changes in the future like updating to .NET 10 requires even fewer changes).

Thank you @Alirexaa !

jobs:
build:
runs-on: ubuntu-latest
services:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seeing this change made me realize that we now may be able to do some yaml refactoring and reuse the https://github.com/Xabaril/AspNetCore.Diagnostics.HealthChecks/blob/master/.github/workflows/reusable_ci_workflow.yml file.

The jobs part for this file could be just:

jobs:
  build:
    uses: ./.github/workflows/reusable_ci_workflow.yml
    with:
      PROJECT_PATH: ./src/HealthChecks.SqlServer/HealthChecks.SqlServer.csproj
      TEST_PROJECT_PATH: ./test/HealthChecks.SqlServer.Tests/HealthChecks.SqlServer.Tests.csproj
      CODECOV_FLAGS: SqlServer

(I took the example from

jobs:
build:
uses: ./.github/workflows/reusable_ci_workflow.yml
with:
PROJECT_PATH: ./src/HealthChecks.CosmosDb/HealthChecks.CosmosDb.csproj
TEST_PROJECT_PATH: ./test/HealthChecks.CosmosDb.Tests/HealthChecks.CosmosDb.Tests.csproj
CODECOV_FLAGS: CosmosDb
)

Copy link
Collaborator

@adamsitnik adamsitnik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thank you @Alirexaa !

@adamsitnik adamsitnik merged commit 05f5ba4 into master Dec 18, 2024
56 of 57 checks passed
@adamsitnik adamsitnik deleted the alirexaa/sqlserver-testcontainers branch December 18, 2024 15:40
@adamsitnik adamsitnik added this to the 9.0 milestone Dec 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

github_actions Pull requests that update Github_actions code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants