nektos / act

Run your GitHub Actions locally 🚀
https://nektosact.com
MIT License
51.87k stars 1.3k forks source link

fix: add missing service container health check #2354

Open ChristopherHX opened 3 weeks ago

ChristopherHX commented 3 weeks ago

Some service container like mysql are slow to start, configuring the optional health check per GitHub Actions Docs can enshure they are ready

GitHub Docs Example based on postgres

mergify[bot] commented 3 weeks ago

@ChristopherHX this pull request has failed checks 🛠

github-actions[bot] commented 3 weeks ago

🦙 MegaLinter status: ✅ SUCCESS

Descriptor Linter Files Fixed Errors Elapsed time
✅ EDITORCONFIG editorconfig-checker 5 0 0.04s
✅ REPOSITORY gitleaks yes no 2.38s
✅ REPOSITORY git_diff yes no 0.01s
✅ REPOSITORY grype yes no 8.88s
✅ REPOSITORY secretlint yes no 1.34s
✅ REPOSITORY trivy-sbom yes no 0.64s
✅ REPOSITORY trufflehog yes no 4.15s

See detailed report in MegaLinter reports _Set VALIDATE_ALL_CODEBASE: true in mega-linter.yml to validate all sources, not only the diff_

_MegaLinter is graciously provided by OX Security_

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 79.54545% with 9 lines in your changes missing coverage. Please review.

Project coverage is 76.34%. Comparing base (5a80a04) to head (adc9c8f). Report is 81 commits behind head on master.

Files Patch % Lines
pkg/container/docker_run.go 66.66% 5 Missing and 1 partial :warning:
pkg/container/host_environment.go 0.00% 2 Missing :warning:
pkg/runner/run_context.go 95.83% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2354 +/- ## =========================================== + Coverage 61.56% 76.34% +14.78% =========================================== Files 53 61 +8 Lines 9002 7859 -1143 =========================================== + Hits 5542 6000 +458 + Misses 3020 1303 -1717 - Partials 440 556 +116 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.