Skip to content

Run PHPUnit 7, 8 or 9 tests from a Docker image.

License

Notifications You must be signed in to change notification settings

Automattic/phpunit-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHPUnit image for Docker

This repository contains a Docker image with PHPUnit 7, 8 and 9. They are all based on Alpine 3.12. The three images are build on GitHub Actions and published in GitHub Packages. To use it:

# PHPUnit 7
docker pull ghcr.io/automattic/phpunit-docker/phpunit:7

# PHPUnit 8
docker pull ghcr.io/automattic/phpunit-docker/phpunit:8

# PHPUnit 9
docker pull ghcr.io/automattic/phpunit-docker/phpunit:9

By default (and due to historical reasons), the latest version is 7

# PHPUnit 7
docker pull ghcr.io/automattic/phpunit-docker/phpunit:latest

Building

The image is automatically built by a GitHub action and published to GitHub Packages. To build it locally, clone this repository and:

cd phpunit-docker

# PHPUnit 7
docker build . -t phpunit:7 -f 7/Dockerfile

# PHPUnit 8
docker build . -t phpunit:8 -f 8/Dockerfile

# PHPUnit 9
docker build . -t phpunit:9 -f 9/Dockerfile

About

Run PHPUnit 7, 8 or 9 tests from a Docker image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages