Skip to content

Add tests #10

@jaydrogers

Description

@jaydrogers

Summary

  • It would be helpful to add tests

Order

It would be nice to have each image go through these steps:

  1. Setup (Pull base images & login to Docker)
  2. Build
  3. Test
  4. Push

What needs to be figured out yet

  • What is the best way to "test" that PHP is working?
  • Will it change on each deployment type (CLI, FPM, FPM-NGINX)

Helpful resources

Here's some code that was provided by Github for reference:

  # Run tests.
  # See also https://docs.docker.com/docker-hub/builds/automated-testing/
  test:
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2

      - name: Run tests
        run: |
          if [ -f docker-compose.test.yml ]; then
            docker-compose --file docker-compose.test.yml build
            docker-compose --file docker-compose.test.yml run sut
          else
            docker build . --file Dockerfile
          fi

  Push image to GitHub Packages.
  See also https://docs.docker.com/docker-hub/builds/

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚡️ EnhancementItems that are new features requested to be added.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions