Skip to content

Test running application #69

@chrira

Description

@chrira

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions