Skip to content
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

Test running application #69

Open
chrira opened this issue Jan 26, 2023 · 0 comments
Open

Test running application #69

chrira opened this issue Jan 26, 2023 · 0 comments

Comments

@chrira
Copy link
Contributor

chrira commented Jan 26, 2023

Add a test stage after the image build to check if the app starts inside the container.

  test:
    needs: build-image
    runs-on: ubuntu-latest
    services:
      spring-boot-app:
        image: 'quay.io/appuio/example-spring-boot:pr-${{ github.event.pull_request.number }}'
    steps:
    - name: Run in container
      run: |
        echo start and wait
        sleep 20
        echo check app
        curl http://spring-boot-app:9000/health
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant