An open API service indexing awesome lists of open source software.

https://github.com/automattic/phpunit-docker

Run PHPUnit 7, 8 or 9 tests from a Docker image.
https://github.com/automattic/phpunit-docker

docker phpunit

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

# 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:

```bash
# 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`

```bash
# 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:

```bash
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
```