-
-
Notifications
You must be signed in to change notification settings - Fork 175
Closed
Labels
⚡️ EnhancementItems that are new features requested to be added.Items that are new features requested to be added.
Description
Summary
- It would be helpful to add tests
Order
It would be nice to have each image go through these steps:
- Setup (Pull base images & login to Docker)
- Build
- Test
- 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/Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
⚡️ EnhancementItems that are new features requested to be added.Items that are new features requested to be added.