Skip to content

Update all dependencies #466

Update all dependencies

Update all dependencies #466

name: Test healthcheck action
on:
push:
pull_request:
branches: [main]
jobs:
test-healthcheck-success:
name: Verifies whether healthcheck action succeeds when it should
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Startup sample HTTP server
run: docker run -d -p 8080:80 nginxdemos/hello
- name: Verify that healthcheck succeeds
uses: ./github-actions/healthcheck
with:
retries: 2
command:
"curl --fail http://localhost:8080 --output /dev/null --silent"
# Note: it does not seem to be possible for now to create a CI job for testing a failing
# healthcheck. I have tested it manually however...