remove sandbox suffix to see if that is breaking github #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Testing DealNews\DataMapper | |
on: [push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
php-versions: ['8.0', '8.1', '8.2'] | |
include: | |
- operating-system: 'ubuntu-latest' | |
php-versions: '8.0' | |
phpunit-versions: 9 | |
# Service containers to run with `container-job` | |
services: | |
# Label used to access the service container | |
memcached: | |
# Docker Hub image | |
image: memcached:latest | |
ports: | |
- 11211:11211 | |
# Label used to access the service container | |
redis: | |
# Docker Hub image | |
image: redis:7.2 | |
# Set health checks to wait until redis has started | |
options: >- | |
--health-cmd "redis-cli ping" | |
--health-interval 10s | |
--health-timeout 5s | |
--health-retries 5 | |
ports: | |
# Maps port 6379 on service container to the host | |
- 6379:6379 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Composer Install | |
uses: php-actions/composer@v6 | |
with: | |
php_version: ${{ matrix.php-versions }} | |
- name: PHPUnit tests | |
uses: php-actions/phpunit@v3 | |
with: | |
php_extensions: "pcov yaml memcached" | |
version: "9.6" | |
php_version: ${{ matrix.php-versions }} | |
- name: Run Phan | |
uses: k1LoW/phan-action@v0 |