Use dependency scan v2 with licenses #868
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test healthcheck action | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| permissions: | |
| contents: read | |
| 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@v6 | |
| - 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... |