Skip to content

chore(ci): add an end job to verify the pipeline finished with success #2991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 20, 2025

Conversation

mdelapenya
Copy link
Member

@mdelapenya mdelapenya commented Feb 20, 2025

What does this PR do?

It adds an end job after the tests, if and only if there are modules to be tested. Also updates the GH repo settings to use this end job as GitHub check as the only required check for merging PRs.

The end job needs the detect-modules and the test jobs in order to be run, so it will always run at the end of the pipeline. The job will check if previous jobs failed or were cancelled, failing the job in those cases. Else, it prints out a success message, finishing the job successfully, creating a passed GH check.

Why is it important?

After the refactor of the pipeline to run the modified modules, the GH check was not updated (on purpose). This PR allows maintainers to see if a PR satisfies the required GH checks when reviewing and eventually merging a PR.

Related Issues

@mdelapenya mdelapenya requested a review from a team as a code owner February 20, 2025 10:04
@mdelapenya mdelapenya added the chore Changes that do not impact the existing functionality label Feb 20, 2025
@mdelapenya mdelapenya self-assigned this Feb 20, 2025
@mdelapenya mdelapenya requested a review from stevenh February 20, 2025 10:04
Copy link

netlify bot commented Feb 20, 2025

Deploy Preview for testcontainers-go ready!

Name Link
🔨 Latest commit 6dfe617
🔍 Latest deploy log https://app.netlify.com/sites/testcontainers-go/deploys/67b719cbd3722600086afb8c
😎 Deploy Preview https://deploy-preview-2991--testcontainers-go.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@mdelapenya mdelapenya merged commit f2a4c85 into testcontainers:main Feb 20, 2025
179 checks passed
@mdelapenya mdelapenya deleted the refactor-status-checks branch February 20, 2025 12:49
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Feb 20, 2025
* main:
  chore(ci): run compose module tests against the upstream compose projects (testcontainers#2990)
  chore(ci): add an end job to verify the pipeline finished with success (testcontainers#2991)
mdelapenya added a commit to mdelapenya/testcontainers-go that referenced this pull request Mar 13, 2025
* main:
  chore: enable empty-block from revive (testcontainers#2994)
  fix(ci): exclude mkdocs.yml file and sonar.properties from the changed-modules script (testcontainers#2993)
  chore(ci): run compose module tests against the upstream compose projects (testcontainers#2990)
  chore(ci): add an end job to verify the pipeline finished with success (testcontainers#2991)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Changes that do not impact the existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rethink the required GH checks
1 participant